ext4: add a hint for block bitmap corrupt state in mb_groups
authorZhang Yi <yi.zhang@huawei.com>
Fri, 19 Jan 2024 06:11:54 +0000 (14:11 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Feb 2024 03:39:38 +0000 (22:39 -0500)
commit68ee261fb15457ecb17e3683cb4e6a4792ca5b71
treedec0901a8864c2b3909898a74ef76701bccbef27
parent547e64bda9c7bd6bda2d20a329bb0f60258fe19b
ext4: add a hint for block bitmap corrupt state in mb_groups

If one group is marked as block bitmap corrupted, its free blocks cannot
be used and its free count is also deducted from the global
sbi->s_freeclusters_counter. User might be confused about the absent
free space because we can't query the information about corrupted block
groups except unreliable error messages in syslog. So add a hint to show
block bitmap corrupted groups in mb_groups.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240119061154.1525781-1-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c