Skip to content
Commit df41460a authored by Josh Triplett's avatar Josh Triplett Committed by Theodore Ts'o
Browse files

ext4: fix incorrect group count in ext4_fill_super error message



ext4_fill_super doublechecks the number of groups before mounting; if
that check fails, the resulting error message prints the group count
from the ext4_sb_info sbi, which hasn't been set yet. Print the freshly
computed group count instead (which at that point has just been computed
in "blocks_count").

Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Fixes: 4ec11028 ("ext4: Add sanity checks for the superblock before mounting the filesystem")
Link: https://lore.kernel.org/r/8b957cd1513fcc4550fe675c10bcce2175c33a49.1585431964.git.josh@joshtriplett.org


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent b9c538da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment