file_fdatawait_range — wait for writeback to complete
int file_fdatawait_range ( | struct file * file, |
| loff_t start_byte, | |
loff_t end_byte); |
filefile pointing to address space structure to wait for
start_byteoffset in bytes where the range starts
end_byteoffset in bytes where the range ends (inclusive)
Walk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.
Since the error status of the file is advanced by this function, callers are responsible for checking the return value and handling and/or reporting the error.