From: Christoph Hellwig Subject: [PATCH] ocfs: stop using do_sync_mapping_range Date: Wed, 23 Sep 2009 15:04:02 +0200 Message-ID: <20090923130402.GB10759@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: mfasheh@suse.com, Joel Becker Return-path: Received: from verein.lst.de ([213.95.11.210]:54504 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbZIWNEE (ORCPT ); Wed, 23 Sep 2009 09:04:04 -0400 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: do_sync_mapping_range(..., SYNC_FILE_RANGE_WRITE) is a very awkward way to perform a filemap_fdatawrite_range. Signed-off-by: Christoph Hellwig 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);