summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-06-15 15:04:04 +0200
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:26:04 +0200
commit6a44517d79a394b7f317d782ed47fd4c4bccf7e8 (patch)
tree00bbe4191bba0c5f182529c62348126239695435 /fs/btrfs/super.c
parentbtrfs: Use btrfs_space_info_used instead of opencoding it (diff)
downloadlinux-6a44517d79a394b7f317d782ed47fd4c4bccf7e8.tar.xz
linux-6a44517d79a394b7f317d782ed47fd4c4bccf7e8.zip
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/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c2
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;