Commit 2cfd30ad authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1e431f5c
...@@ -7190,8 +7190,8 @@ int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, ...@@ -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 * wait on them - the truncate_inode_pages() call later will
* do that for us. * do that for us.
*/ */
ret = do_sync_mapping_range(inode->i_mapping, range_start, ret = filemap_fdatawrite_range(inode->i_mapping, range_start,
range_end - 1, SYNC_FILE_RANGE_WRITE); range_end - 1);
if (ret) if (ret)
mlog_errno(ret); mlog_errno(ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment