projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eee8a4
)
btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
author
David Sterba
<dsterba@suse.com>
Thu, 15 Jun 2017 13:04:04 +0000
(15:04 +0200)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/super.c
b/fs/btrfs/super.c
index 3371213924bdc29c41c4069754b862c5eaec307a..53d43cd3cace4d781e5a7763e77d39d31cac97ef 100644
(file)
--- a/
fs/btrfs/super.c
+++ b/
fs/btrfs/super.c
@@
-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;