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>
This commit is contained in:
Dave Chinner 2010-07-20 17:54:12 +10:00 committed by Alex Elder
parent 4a7edddcb5
commit aea1b95321
1 changed files with 2 additions and 2 deletions

View File

@ -1493,8 +1493,8 @@ xfs_vm_write_begin(
void **fsdata) void **fsdata)
{ {
*pagep = NULL; *pagep = NULL;
return block_write_begin(file, mapping, pos, len, flags, pagep, fsdata, return block_write_begin(file, mapping, pos, len, flags | AOP_FLAG_NOFS,
xfs_get_blocks); pagep, fsdata, xfs_get_blocks);
} }
STATIC sector_t STATIC sector_t