We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a54789 commit 11a19a9Copy full SHA for 11a19a9
fs/btrfs/inode.c
@@ -6305,13 +6305,16 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
6305
u32 sizes[2];
6306
int nitems = name ? 2 : 1;
6307
unsigned long ptr;
6308
+ unsigned int nofs_flag;
6309
int ret;
6310
6311
path = btrfs_alloc_path();
6312
if (!path)
6313
return ERR_PTR(-ENOMEM);
6314
6315
+ nofs_flag = memalloc_nofs_save();
6316
inode = new_inode(fs_info->sb);
6317
+ memalloc_nofs_restore(nofs_flag);
6318
if (!inode) {
6319
btrfs_free_path(path);
6320
0 commit comments