btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
David Sterba
maintainerPATCH 1/1 btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
We don't hold any locks here. Inidirectly called from statfs.
Signed-off-by David Sterba <[email protected]>
--- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/super.c +1 -1
@@ -1927,7 +1927,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 ;
Signature · 1 line
2.13.0
Quoted 1 line · David Sterba
We don't hold any locks here. Inidirectly called from statfs.
Reviewed-by Anand Jain <[email protected]>
Quoted 19 lines
Signed-off-by David Sterba <[email protected]>--- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/btrfs/super.c +1
-1@@ -1927,7 +1927,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 ;