[PATCH] ocfs: stop using do_sync_mapping_range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux