diff options
author | David Sterba <dsterba@suse.com> | 2017-06-15 15:04:04 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:04 +0200 |
commit | 6a44517d79a394b7f317d782ed47fd4c4bccf7e8 (patch) | |
tree | 00bbe4191bba0c5f182529c62348126239695435 /fs | |
parent | 0eee8a494e786672c57d86c445e24e678d562bf4 (diff) | |
download | op-kernel-dev-6a44517d79a394b7f317d782ed47fd4c4bccf7e8.zip op-kernel-dev-6a44517d79a394b7f317d782ed47fd4c4bccf7e8.tar.gz |
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>
Diffstat (limited to 'fs')
-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 3371213..53d43cd 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; |