aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-07-20 03:54:12 -0400
committerAlex Elder <aelder@sgi.com>2010-07-26 14:16:49 -0400
commitaea1b9532143218f8599ecedbbd6bfbf812385e1 (patch)
tree3b6aa49dffcf982119999578324926a2dd955264 /fs/xfs/linux-2.6
parent4a7edddcb5b14ddb5962e6906b6fd6b500d7a361 (diff)
xfs: use GFP_NOFS for page cache allocation
Avoid a lockdep warning by preventing page cache allocation from recursing back into the filesystem during memory reclaim. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 225ec0fa65b6..8abbf0532ea1 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -1493,8 +1493,8 @@ xfs_vm_write_begin(
1493 void **fsdata) 1493 void **fsdata)
1494{ 1494{
1495 *pagep = NULL; 1495 *pagep = NULL;
1496 return block_write_begin(file, mapping, pos, len, flags, pagep, fsdata, 1496 return block_write_begin(file, mapping, pos, len, flags | AOP_FLAG_NOFS,
1497 xfs_get_blocks); 1497 pagep, fsdata, xfs_get_blocks);
1498} 1498}
1499 1499
1500STATIC sector_t 1500STATIC sector_t