From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932907AbZHUR2z (ORCPT ); Fri, 21 Aug 2009 13:28:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932866AbZHUR1s (ORCPT ); Fri, 21 Aug 2009 13:27:48 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50221 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932705AbZHURYK (ORCPT ); Fri, 21 Aug 2009 13:24:10 -0400 From: Jan Kara To: LKML Cc: hch@lst.de, linux-fsdevel@vger.kernel.org, Jan Kara , Felix Blyakher , xfs@oss.sgi.com Subject: [PATCH 13/17] xfs: Convert sync_page_range() to simple fdatawrite_range() Date: Fri, 21 Aug 2009 19:24:03 +0200 Message-Id: <1250875447-15622-14-git-send-email-jack@suse.cz> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1250875447-15622-1-git-send-email-jack@suse.cz> References: <1250875447-15622-1-git-send-email-jack@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig says that it is enough for XFS to call filemap_fdatawrite_range() instead of sync_page_range() because we do all the waiting when forcing the log. CC: Felix Blyakher CC: xfs@oss.sgi.com CC: Christoph Hellwig Signed-off-by: Jan Kara --- fs/xfs/linux-2.6/xfs_lrw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c index 7078974..a68053c 100644 --- a/fs/xfs/linux-2.6/xfs_lrw.c +++ b/fs/xfs/linux-2.6/xfs_lrw.c @@ -817,7 +817,7 @@ write_retry: xfs_iunlock(xip, iolock); if (need_i_mutex) mutex_unlock(&inode->i_mutex); - error2 = sync_page_range(inode, mapping, pos, ret); + error2 = filemap_fdatawrite_range(mapping, pos, pos + ret - 1); if (!error) error = error2; if (need_i_mutex) -- 1.6.0.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7LHNPGa183863 for ; Fri, 21 Aug 2009 12:23:35 -0500 Received: from mx2.suse.de (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 678FE3EB8BD for ; Fri, 21 Aug 2009 10:24:10 -0700 (PDT) Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by cuda.sgi.com with ESMTP id h7Za8RNfcZgSiZ6z for ; Fri, 21 Aug 2009 10:24:10 -0700 (PDT) From: Jan Kara Subject: [PATCH 13/17] xfs: Convert sync_page_range() to simple fdatawrite_range() Date: Fri, 21 Aug 2009 19:24:03 +0200 Message-Id: <1250875447-15622-14-git-send-email-jack@suse.cz> In-Reply-To: <1250875447-15622-1-git-send-email-jack@suse.cz> References: <1250875447-15622-1-git-send-email-jack@suse.cz> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: LKML Cc: linux-fsdevel@vger.kernel.org, Jan Kara , hch@lst.de, xfs@oss.sgi.com Christoph Hellwig says that it is enough for XFS to call filemap_fdatawrite_range() instead of sync_page_range() because we do all the waiting when forcing the log. CC: Felix Blyakher CC: xfs@oss.sgi.com CC: Christoph Hellwig Signed-off-by: Jan Kara --- fs/xfs/linux-2.6/xfs_lrw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c index 7078974..a68053c 100644 --- a/fs/xfs/linux-2.6/xfs_lrw.c +++ b/fs/xfs/linux-2.6/xfs_lrw.c @@ -817,7 +817,7 @@ write_retry: xfs_iunlock(xip, iolock); if (need_i_mutex) mutex_unlock(&inode->i_mutex); - error2 = sync_page_range(inode, mapping, pos, ret); + error2 = filemap_fdatawrite_range(mapping, pos, pos + ret - 1); if (!error) error = error2; if (need_i_mutex) -- 1.6.0.2 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs