file_write_and_wait_range — write out & wait on a file range
int file_write_and_wait_range ( | struct file * file, |
loff_t lstart, | |
loff_t lend) ; |
file
file pointing to address_space with pages
lstart
offset in bytes where the range starts
lend
offset in bytes where the range ends (inclusive)
Write out and wait upon file offsets lstart->lend, inclusive.
Note that lend
is inclusive (describes the last byte to be written) so
that this function can be used to write to the very end-of-file (end = -1).
After writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there.