OSDN Git Service

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 f9efaec..2e92c58 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;