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 <mark.fasheh@oracle.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
524e675291
commit
ef51c97623
@@ -229,7 +229,7 @@ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes,
|
||||
!S_ISLNK(i_mode))
|
||||
goto out_put;
|
||||
|
||||
ret = do_sync_file_range(file, offset, endbyte, flags);
|
||||
ret = do_sync_mapping_range(file->f_mapping, offset, endbyte, flags);
|
||||
out_put:
|
||||
fput_light(file, fput_needed);
|
||||
out:
|
||||
|
Reference in New Issue
Block a user