From: David Sterba Date: Thu, 15 Jun 2017 13:04:04 +0000 (+0200) Subject: btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a44517d79a394b7f317d782ed47fd4c4bccf7e8;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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;