Commit 6a44517d authored by David Sterba's avatar David Sterba

btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space

We don't hold any locks here. Inidirectly called from statfs.
Reviewed-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 0eee8a49
...@@ -1926,7 +1926,7 @@ static int btrfs_calc_avail_data_space(struct btrfs_fs_info *fs_info, ...@@ -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), devices_info = kmalloc_array(nr_devices, sizeof(*devices_info),
GFP_NOFS); GFP_KERNEL);
if (!devices_info) if (!devices_info)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment