]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix up misleading GFP_NOFS usage in btrfs_releasepage
authorMichal Hocko <mhocko@suse.com>
Mon, 9 Jan 2017 14:39:02 +0000 (15:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:49 +0000 (15:50 +0100)
commit94004e83c46ed15e04913b3de14a3eb9e4b46a84
treecfc9c4299f03ae428f4ba3ab7bda2ab0e41a0c68
parenta1c5a909ecdecf07dad68c8fb52ce76e6fde30e7
btrfs: fix up misleading GFP_NOFS usage in btrfs_releasepage

b18c8dcd1d03 ("Btrfs: Avoid using __GFP_HIGHMEM with slab allocator")
has reduced the allocation mask in btrfs_releasepage to GFP_NOFS just
to prevent from giving an unappropriate gfp mask to the slab allocator
deeper down the callchain (in alloc_extent_state). This is wrong for
two reasons a) GFP_NOFS might be just too restrictive for the calling
context b) it is better to tweak the gfp mask down when it needs that.

So just remove the mask tweaking from btrfs_releasepage and move it
down to alloc_extent_state where it is needed.

Signed-off-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/inode.c