]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
btrfs: use GFP_KERNEL in btrfs_alloc_inode
authorDavid Sterba <dsterba@suse.com>
Tue, 31 Oct 2017 16:08:27 +0000 (17:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:12 +0000 (16:08 +0100)
This callback is called directly from VFS, no locks are held at the
allocation time.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c

index f9efaecfc9d1c1a14ba9052804abb2658b06478c..2e92c582cda04731a1ddb58dc53645a5dc8f5999 100644 (file)
@@ -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;