summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorbrookxu <brookxu.cn@gmail.com>2020-07-27 03:54:14 +0200
committerTheodore Ts'o <tytso@mit.edu>2020-08-07 20:12:36 +0200
commit9375ac770cda6bdff829f43868d0ebcaba41f675 (patch)
tree2bc60d9eabdb07f183092c0ba2cd18d6f41c1169 /fs/ext4
parentext4: export msg_count and warning_count via sysfs (diff)
downloadlinux-9375ac770cda6bdff829f43868d0ebcaba41f675.tar.xz
linux-9375ac770cda6bdff829f43868d0ebcaba41f675.zip
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 <brookxu@tencent.com> Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com> Link: https://lore.kernel.org/r/ad68e8a2-5ec3-5beb-537f-f3e53f55367a@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 8ecd49dd3906..19101941dadd 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1279,9 +1279,6 @@ ext4_mb_load_buddy_gfp(struct super_block *sb, ext4_group_t group,
e4b->bd_buddy_page = page;
e4b->bd_buddy = page_address(page) + (poff * sb->s_blocksize);
- BUG_ON(e4b->bd_bitmap_page == NULL);
- BUG_ON(e4b->bd_buddy_page == NULL);
-
return 0;
err: