summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2018-12-13 21:16:45 +0000
committerDavid Sterba <dsterba@suse.com>2019-02-25 14:13:16 +0100
commitb89f6d1fcb30a8cbdc18ce00c7d93792076af453 (patch)
treecd77dcfc9257febe72cdea9e76fd9cd6a0825979 /fs/btrfs/ctree.h
parenteee995775444b50a74ac479ee98ff88e6df1b01b (diff)
downloadlinux-stable-b89f6d1fcb30a8cbdc18ce00c7d93792076af453.tar.gz
linux-stable-b89f6d1fcb30a8cbdc18ce00c7d93792076af453.tar.bz2
linux-stable-b89f6d1fcb30a8cbdc18ce00c7d93792076af453.zip
Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
We are holding a transaction handle when creating a tree, therefore we can not allocate the root using GFP_KERNEL, as we could deadlock if reclaim is triggered by the allocation, therefore setup a nofs context. Fixes: 74e4d82757f74 ("btrfs: let callers of btrfs_alloc_root pass gfp flags") CC: stable@vger.kernel.org # 4.9+ Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions