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@xxxxxx> Index: vfs-2.6.git/fs/ocfs2/alloc.c =================================================================== --- vfs-2.6.git.orig/fs/ocfs2/alloc.c 2009-09-22 14:29:26.422297758 -0300 +++ vfs-2.6.git/fs/ocfs2/alloc.c 2009-09-22 14:30:35.682086139 -0300 @@ -7040,8 +7040,8 @@ int ocfs2_zero_range_for_truncate(struct * 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); -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html