summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-10-31 17:08:27 +0100
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:12 +0100
commit712e36c5f2a7fa561aa3876b0e466df072aa6a1e (patch)
treebbb97944f33833577bfd8d44c151f80c544767e2 /fs/btrfs/inode.c
parentbtrfs: sink gfp parameter to clear_extent_uptodate (diff)
downloadlinux-712e36c5f2a7fa561aa3876b0e466df072aa6a1e.tar.xz
linux-712e36c5f2a7fa561aa3876b0e466df072aa6a1e.zip
btrfs: use GFP_KERNEL in btrfs_alloc_inode
This callback is called directly from VFS, no locks are held at the allocation time. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-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 f9efaecfc9d1..2e92c582cda0 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9430,7 +9430,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
struct btrfs_inode *ei;
struct inode *inode;
- ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_NOFS);
+ ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_KERNEL);
if (!ei)
return NULL;