From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p8U7IL6m246218 for ; Fri, 30 Sep 2011 02:18:21 -0500 Received: from mx1.redhat.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 96C50152ADCE for ; Fri, 30 Sep 2011 00:24:33 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id kZnXBpxoV1QlUp0N for ; Fri, 30 Sep 2011 00:24:33 -0700 (PDT) From: Johannes Weiner Subject: [patch 5/5] Btrfs: pass __GFP_WRITE for buffered write page allocations Date: Fri, 30 Sep 2011 09:17:24 +0200 Message-Id: <1317367044-475-6-git-send-email-jweiner@redhat.com> In-Reply-To: <1317367044-475-1-git-send-email-jweiner@redhat.com> References: <1317367044-475-1-git-send-email-jweiner@redhat.com> 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: Andrew Morton Cc: Rik van Riel , linux-ext4@vger.kernel.org, Jan Kara , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, xfs@oss.sgi.com, Christoph Hellwig , linux-mm@kvack.org, Andreas Dilger , Mel Gorman , Shaohua Li , linux-fsdevel@vger.kernel.org, Theodore Ts'o , Wu Fengguang , Chris Mason , Minchan Kim Tell the page allocator that pages allocated for a buffered write are expected to become dirty soon. Signed-off-by: Johannes Weiner Reviewed-by: Rik van Riel --- fs/btrfs/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index e7872e4..ea1b892 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1084,7 +1084,7 @@ static noinline int prepare_pages(struct btrfs_root *root, struct file *file, again: for (i = 0; i < num_pages; i++) { pages[i] = find_or_create_page(inode->i_mapping, index + i, - GFP_NOFS); + GFP_NOFS | __GFP_WRITE); if (!pages[i]) { faili = i - 1; err = -ENOMEM; -- 1.7.6.2 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs