]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 13:04:04 +0000 (15:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:04 +0000 (18:26 +0200)
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>
fs/btrfs/super.c

index 3371213924bdc29c41c4069754b862c5eaec307a..53d43cd3cace4d781e5a7763e77d39d31cac97ef 100644 (file)
@@ -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;