mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Remove do_sync_file_range()
Remove do_sync_file_range() and convert callers to just use do_sync_mapping_range(). Signed-off-by: Mark Fasheh <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
524e675291
commit
ef51c97623
4 changed files with 9 additions and 14 deletions
|
|
@ -2309,10 +2309,10 @@ __generic_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov,
|
|||
* semantics.
|
||||
*/
|
||||
endbyte = pos + written_buffered - written - 1;
|
||||
err = do_sync_file_range(file, pos, endbyte,
|
||||
SYNC_FILE_RANGE_WAIT_BEFORE|
|
||||
SYNC_FILE_RANGE_WRITE|
|
||||
SYNC_FILE_RANGE_WAIT_AFTER);
|
||||
err = do_sync_mapping_range(file->f_mapping, pos, endbyte,
|
||||
SYNC_FILE_RANGE_WAIT_BEFORE|
|
||||
SYNC_FILE_RANGE_WRITE|
|
||||
SYNC_FILE_RANGE_WAIT_AFTER);
|
||||
if (err == 0) {
|
||||
written = written_buffered;
|
||||
invalidate_mapping_pages(mapping,
|
||||
|
|
|
|||
Loading…
Reference in a new issue