Skip to content

Commit

Permalink
btrfs: use GFP_KERNEL in btrfs_alloc_inode
Browse files Browse the repository at this point in the history
This callback is called directly from VFS, no locks are held at the
allocation time.

Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed Jan 22, 2018
1 parent f08dc36 commit 712e36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 712e36c

Please sign in to comment.