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 12:39:01 +0000 (14:39 +0200)
commit2b273d1fd18ebebdc5e99139f0c89b142d40ea9c
tree3a68818484d935c6aee4c9587801789671657d11
parent52ca84a3edd1914e575450bcd1ce6cbc6e15e2cb
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