From 6a44517d79a394b7f317d782ed47fd4c4bccf7e8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 15 Jun 2017 15:04:04 +0200 Subject: [PATCH] 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 Signed-off-by: David Sterba --- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1