]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 15 Apr 2022 01:31:27 +0000 (21:31 -0400)
commit10b01ee92df52c8d7200afead4d5e5f55a5c58b1
treef18a3498212f54e20ffbbc62b5577c90ce53fb88
parent7102ffe4c166ca0f5e35137e9f9de83768c2d27d
ext4: fix overhead calculation to account for the reserved gdt blocks

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
fs/ext4/super.c