From: Christoph Hellwig Date: Wed, 23 Sep 2009 13:04:02 +0000 (+0200) Subject: ocfs: stop using do_sync_mapping_range X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Al Viro --- 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);