All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ocfs: stop using do_sync_mapping_range
@ 2009-09-23 13:04 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2009-09-23 13:04 UTC (permalink / raw)
  To: mfasheh, Joel Becker; +Cc: linux-fsdevel


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>

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);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-23 13:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-23 13:04 [PATCH] ocfs: stop using do_sync_mapping_range Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.