]> git.baikalelectronics.ru Git - kernel.git/commit
fold do_sync_file_range into sys_sync_file_range
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Dec 2009 13:24:40 +0000 (14:24 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 16:03:25 +0000 (11:03 -0500)
commitecbe03e676ff44fca99594800dee2b5e343a4b6f
tree7e21f078c03cbeb350d964c23a2c49f7016f5ef7
parent383d4e4dc68ce4399830c9c8f2a98a1252a16450
fold do_sync_file_range into sys_sync_file_range

We recently go rid of all callers of do_sync_file_range as they're better
served with vfs_fsync or the filemap_write_and_wait.  Now that
do_sync_file_range is down to a single caller fold it into it so that people
don't start using it again accidentally.  While at it also switch it from
using __filemap_fdatawrite_range(..., WB_SYNC_ALL) to the more clear
filemap_fdatawrite_range().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/sync.c
include/linux/fs.h