Skip to content

Commit 712e36c

Browse files
committed
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 <[email protected]>
1 parent f08dc36 commit 712e36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9430,7 +9430,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
94309430
struct btrfs_inode *ei;
94319431
struct inode *inode;
94329432

9433-
ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_NOFS);
9433+
ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_KERNEL);
94349434
if (!ei)
94359435
return NULL;
94369436

0 commit comments

Comments
 (0)