commit | 6a44517d79a394b7f317d782ed47fd4c4bccf7e8 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Thu Jun 15 15:04:04 2017 +0200 |
committer | David Sterba <dsterba@suse.com> | Mon Jun 19 18:26:04 2017 +0200 |
tree | 00bbe4191bba0c5f182529c62348126239695435 | |
parent | 0eee8a494e786672c57d86c445e24e678d562bf4 [diff] [blame] |
btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space We don't hold any locks here. Inidirectly called from statfs. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 3371213..53d43cd 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c
@@ -1926,7 +1926,7 @@ } devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), - GFP_NOFS); + GFP_KERNEL); if (!devices_info) return -ENOMEM;