diff options
author | David Sterba <dsterba@suse.com> | 2016-02-11 14:25:38 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-11 15:19:39 +0100 |
commit | 49e350a4919fb1751127111cf6dd6fed02815781 (patch) | |
tree | 05c5cf5d2bd103c43dcf51be5cd2ee80d6b52233 /fs/btrfs | |
parent | 32fc932e30c4b6a03847426f52e23459c9fb906f (diff) | |
download | blackbird-obmc-linux-49e350a4919fb1751127111cf6dd6fed02815781.tar.gz blackbird-obmc-linux-49e350a4919fb1751127111cf6dd6fed02815781.zip |
btrfs: readdir: use GFP_KERNEL
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 5f06eb1f4384..2bd47fb228b2 100644 --- 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; |