]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:35 +0000 (13:07 +0200)
commit58546b2aa26310abfe6ca3a4517c3fc89543433c
tree03dd7e11c4fb00cb0f2edd167a1b0e46c1081eb8
parentbd6b1c418bd663d5fba61b6567e049a27a1eb7e7
ext4: add a hint for block bitmap corrupt state in mb_groups

[ Upstream commit 68ee261fb15457ecb17e3683cb4e6a4792ca5b71 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/mballoc.c