diff options
author | David Sterba <dsterba@suse.com> | 2017-06-15 16:04:04 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 19:26:04 +0300 |
commit | 6a44517d79a394b7f317d782ed47fd4c4bccf7e8 (patch) | |
tree | 00bbe4191bba0c5f182529c62348126239695435 | |
parent | 0eee8a494e786672c57d86c445e24e678d562bf4 (diff) | |
download | linux-6a44517d79a394b7f317d782ed47fd4c4bccf7e8.tar.xz |
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>
-rw-r--r-- | fs/btrfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 3371213924bd..53d43cd3cace 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1926,7 +1926,7 @@ static int btrfs_calc_avail_data_space(struct btrfs_fs_info *fs_info, } devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), - GFP_NOFS); + GFP_KERNEL); if (!devices_info) return -ENOMEM; |