ext4: fix overhead calculation to account for the reserved gdt blocks
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 Apr 2022 01:31:27 +0000 (21:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:39:01 +0000 (14:39 +0200)
commit52ca84a3edd1914e575450bcd1ce6cbc6e15e2cb
treee26ae26e25cb4b3fa3a91ffaad7807935d260baa
parent6b952563934c37f29788122081acb9ff9f2ab17a
ext4: fix overhead calculation to account for the reserved gdt blocks

commit 10b01ee92df52c8d7200afead4d5e5f55a5c58b1 upstream.

The kernel calculation was underestimating the overhead by not taking
into account the reserved gdt blocks.  With this change, the overhead
calculated by the kernel matches the overhead calculation in mke2fs.

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