summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-02-26 15:38:28 +0100
committerDavid Sterba <dsterba@suse.com>2016-02-26 15:38:28 +0100
commite22b3d1fbe596c7feba6782dab2e11c7b99f1d90 (patch)
tree50cfe9b71c227c8661b785ab3a0a5cab33ad8e3f /fs/btrfs/inode.c
parentMerge branch 'chandan/prep-subpage-blocksize' into for-chris-4.6 (diff)
parentbtrfs: switch to kcalloc in btrfs_cmp_data_prepare (diff)
downloadlinux-e22b3d1fbe596c7feba6782dab2e11c7b99f1d90.tar.xz
linux-e22b3d1fbe596c7feba6782dab2e11c7b99f1d90.zip
Merge branch 'dev/gfp-flags' into for-chris-4.6
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 3e0d41511517..f8be74037f34 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -5793,7 +5793,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;