Skip to content

Commit 9375ac7

Browse files
brookxu-cntytso
authored andcommitted
ext4: delete the invalid BUGON in ext4_mb_load_buddy_gfp()
Delete the invalid BUGON in ext4_mb_load_buddy_gfp(), the previous code has already judged whether page is NULL. Signed-off-by: Chunguang Xu <[email protected]> Reviewed-by: Ritesh Harjani <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 1cf006e commit 9375ac7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/ext4/mballoc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,9 +1279,6 @@ ext4_mb_load_buddy_gfp(struct super_block *sb, ext4_group_t group,
12791279
e4b->bd_buddy_page = page;
12801280
e4b->bd_buddy = page_address(page) + (poff * sb->s_blocksize);
12811281

1282-
BUG_ON(e4b->bd_bitmap_page == NULL);
1283-
BUG_ON(e4b->bd_buddy_page == NULL);
1284-
12851282
return 0;
12861283

12871284
err:

0 commit comments

Comments
 (0)