X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.4.0-r929098 Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id o6FI79LZ216375 for ; Thu, 15 Jul 2010 13:07:09 -0500 Received: from cf--amer001e--3.americas.sgi.com (cf--amer001e--3.americas.sgi.com [137.38.100.5]) by relay3.corp.sgi.com (Postfix) with ESMTP id 47D3AAC019; Thu, 15 Jul 2010 11:10:06 -0700 (PDT) Received: from [128.162.232.147] ([128.162.232.147]) by cf--amer001e--3.americas.sgi.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 15 Jul 2010 13:10:05 -0500 Subject: Re: [PATCH 4/5] xfs: use GFP_NOFS for page cache allocation From: Alex Elder Reply-To: aelder@sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com In-Reply-To: <1279154300-2018-5-git-send-email-david@fromorbit.com> References: <1279154300-2018-1-git-send-email-david@fromorbit.com> <1279154300-2018-5-git-send-email-david@fromorbit.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 15 Jul 2010 13:10:05 -0500 Message-ID: <1279217405.2054.34.camel@doink> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Jul 2010 18:10:05.0866 (UTC) FILETIME=[F3EA60A0:01CB2448] X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Thu, 2010-07-15 at 10:38 +1000, Dave Chinner wrote: > From: Dave Chinner > > Avoid a lockdep warning by preventing page cache allocation from > recursing back into the filesystem during memory reclaim. Looks good. Reviewed-by: Alex Elder > Signed-off-by: Dave Chinner > --- > fs/xfs/linux-2.6/xfs_aops.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c > index ed9c3db..1075791 100644 > --- a/fs/xfs/linux-2.6/xfs_aops.c > +++ b/fs/xfs/linux-2.6/xfs_aops.c > @@ -1501,8 +1501,9 @@ xfs_vm_write_begin( > void **fsdata) > { > *pagep = NULL; > - return block_write_begin(file, mapping, pos, len, flags, pagep, fsdata, > - xfs_get_blocks); > + return block_write_begin(file, mapping, pos, len, > + (flags | AOP_FLAG_NOFS), Why the parentheses? > + pagep, fsdata, xfs_get_blocks); > } > > STATIC sector_t