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 fd60b28 commit 65d3af6Copy full SHA for 65d3af6
fs/f2fs/super.c
@@ -1345,8 +1345,12 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb)
1345
{
1346
struct f2fs_inode_info *fi;
1347
1348
- fi = f2fs_kmem_cache_alloc(f2fs_inode_cachep,
1349
- GFP_F2FS_ZERO, false, F2FS_SB(sb));
+ if (time_to_inject(F2FS_SB(sb), FAULT_SLAB_ALLOC)) {
+ f2fs_show_injection_info(F2FS_SB(sb), FAULT_SLAB_ALLOC);
1350
+ return NULL;
1351
+ }
1352
+
1353
+ fi = alloc_inode_sb(sb, f2fs_inode_cachep, GFP_F2FS_ZERO);
1354
if (!fi)
1355
return NULL;
1356
0 commit comments