ext4: force overhead calculation if the s_overhead_cluster makes no sense
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 Apr 2022 01:57:49 +0000 (21:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 11:53:57 +0000 (13:53 +0200)
commite1e96e37272156d691203a3725b876787f38c8f2
tree0ec50599a1dbf5ba684ff6789c3f97134a53eec4
parent4789149b9ea2a1893c62d816742f1a76514fc901
ext4: force overhead calculation if the s_overhead_cluster makes no sense

commit 85d825dbf4899a69407338bae462a59aa9a37326 upstream.

If the file system does not use bigalloc, calculating the overhead is
cheap, so force the recalculation of the overhead so we don't have to
trust the precalculated overhead in the superblock.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c