Skip to content

Commit

Permalink
btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba committed Jun 19, 2017
1 parent 0eee8a4 commit 6a44517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6a44517

Please sign in to comment.