summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2009-09-23 15:04:02 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-16 18:16:49 +0100
commit2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31 (patch)
tree2e7ca4760d58164d6352ede7813f854f485a5404 /fs/ocfs2
parentcleanup blockdev_direct_IO locking (diff)
downloadlinux-2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31.tar.xz
linux-2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31.zip
ocfs: stop using do_sync_mapping_range
do_sync_mapping_range(..., SYNC_FILE_RANGE_WRITE) is a very awkward way to perform a filemap_fdatawrite_range. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--fs/ocfs2/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 7c7198a5bc90..fb4e672579b8 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -7190,8 +7190,8 @@ int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle,
* wait on them - the truncate_inode_pages() call later will
* do that for us.
*/
- ret = do_sync_mapping_range(inode->i_mapping, range_start,
- range_end - 1, SYNC_FILE_RANGE_WRITE);
+ ret = filemap_fdatawrite_range(inode->i_mapping, range_start,
+ range_end - 1);
if (ret)
mlog_errno(ret);