Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;