diff options
author | Christoph Hellwig <hch@lst.de> | 2009-09-23 15:04:02 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-16 12:16:49 -0500 |
commit | 2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31 (patch) | |
tree | 2e7ca4760d58164d6352ede7813f854f485a5404 /fs/ocfs2 | |
parent | 1e431f5ce78f3ae8254d725060288b78ff74f086 (diff) | |
download | kernel_goldelico_gta04-2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31.zip kernel_goldelico_gta04-2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31.tar.gz kernel_goldelico_gta04-2cfd30adf6130dab3fbb130eb5f7b1fd42a70e31.tar.bz2 |
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 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 7c7198a..fb4e672 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); |