'\" t .\" Title: filemap_fdatawait_range .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "FILEMAP_FDATAWAIT_RA" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" filemap_fdatawait_range \- wait for writeback to complete .SH "SYNOPSIS" .HP \w'int\ filemap_fdatawait_range('u .BI "int filemap_fdatawait_range(struct\ address_space\ *\ " "mapping" ", loff_t\ " "start_byte" ", loff_t\ " "end_byte" ");" .SH "ARGUMENTS" .PP \fImapping\fR .RS 4 address space structure to wait for .RE .PP \fIstart_byte\fR .RS 4 offset in bytes where the range starts .RE .PP \fIend_byte\fR .RS 4 offset in bytes where the range ends (inclusive) .RE .SH "DESCRIPTION" .PP Walk the list of under\-writeback pages of the given address space in the given range and wait for all of them\&. Check error status of the address space and return it\&. .PP Since the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error\&. .SH "COPYRIGHT" .br