summaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-03-28 14:54:01 -0700
committerTheodore Ts'o <tytso@mit.edu>2020-03-28 23:11:39 -0400
commitdf41460a21b06a76437af040d90ccee03888e8e5 (patch)
treeb53555b81714ec64324470ef3b75b55a93557b49 /fs/ext4/balloc.c
parentb9c538da4e52a7b79dfcf4cfa487c46125066dfb (diff)
downloadlinux-df41460a21b06a76437af040d90ccee03888e8e5.tar.bz2
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: Josh Triplett <josh@joshtriplett.org> Fixes: 4ec1102813798 ("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: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
0 files changed, 0 insertions, 0 deletions