projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fc932
)
btrfs: readdir: use GFP_KERNEL
author
David Sterba
<dsterba@suse.com>
Thu, 11 Feb 2016 13:25:38 +0000
(14:25 +0100)
committer
David Sterba
<dsterba@suse.com>
Thu, 11 Feb 2016 14:19:39 +0000
(15:19 +0100)
Readdir is initiated from userspace and is not on the critical
writeback path, we don't need to use GFP_NOFS for allocations.
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 5f06eb1f43843055c0373daeb9ad98648865150f..2bd47fb228b29577d673c57d608e9d7580d024a1 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-5788,7
+5788,7
@@
static int btrfs_real_readdir(struct file *file, struct dir_context *ctx)
if (name_len <= sizeof(tmp_name)) {
name_ptr = tmp_name;
} else {
- name_ptr = kmalloc(name_len, GFP_
NOFS
);
+ name_ptr = kmalloc(name_len, GFP_
KERNEL
);
if (!name_ptr) {
ret = -ENOMEM;
goto err;