Revert "ext4: avoid potential buffer_head leak in __ext4_new_inode()"

This reverts commit 919de34d5e.
This commit is contained in:
Ksawlii 2024-11-24 00:23:23 +01:00
parent edcb108ec3
commit 1b82c86b6e

View file

@ -1056,13 +1056,12 @@ got_group:
brelse(inode_bitmap_bh);
inode_bitmap_bh = ext4_read_inode_bitmap(sb, group);
/* Skip groups with suspicious inode tables */
if (IS_ERR(inode_bitmap_bh)) {
if (((!(sbi->s_mount_state & EXT4_FC_REPLAY))
&& EXT4_MB_GRP_IBITMAP_CORRUPT(grp)) ||
IS_ERR(inode_bitmap_bh)) {
inode_bitmap_bh = NULL;
goto next_group;
}
if (!(sbi->s_mount_state & EXT4_FC_REPLAY) &&
EXT4_MB_GRP_IBITMAP_CORRUPT(grp))
goto next_group;
repeat_in_this_group:
ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino);