Name

file_fdatawait_range — wait for writeback to complete

Synopsis

int file_fdatawait_range (struct file * file,
 loff_t start_byte,
 loff_t end_byte);
 

Arguments

file

file pointing to address space structure to wait for

start_byte

offset in bytes where the range starts

end_byte

offset in bytes where the range ends (inclusive)

Description

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.