提交 712e36c5 编写于 作者: D David Sterba

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: NDavid Sterba <dsterba@suse.com>
上级 f08dc36f
...@@ -9430,7 +9430,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb) ...@@ -9430,7 +9430,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
struct btrfs_inode *ei; struct btrfs_inode *ei;
struct inode *inode; struct inode *inode;
ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_NOFS); ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_KERNEL);
if (!ei) if (!ei)
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册