Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aea1b953 authored by Dave Chinner's avatar Dave Chinner Committed by Alex Elder
Browse files

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: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAlex Elder <aelder@sgi.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 4a7edddc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1493,8 +1493,8 @@ 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,
				 pagep, fsdata, xfs_get_blocks);
}

STATIC sector_t