Wait for writeback to complete
int filemap_fdatawait_range(struct address_space * mapping, loff_t start_byte, loff_t end_byte);
mapping
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)
Walk the list of under-writeback pages of the given address space in the given range and wait for all of them.