From: David Sterba Date: Tue, 31 Oct 2017 16:08:27 +0000 (+0100) Subject: btrfs: use GFP_KERNEL in btrfs_alloc_inode X-Git-Tag: for-linus-20180210~88^2~124 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=712e36c5f2a7;p=linux-block.git 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 --- 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;