mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Alex Elder <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
This commit is contained in:
parent
4a7edddcb5
commit
aea1b95321
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue