]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix overhead calculations in ext4_stats, again
authorEric Sandeen <sandeen@redhat.com>
Thu, 8 Nov 2012 15:33:36 +0000 (10:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Nov 2012 15:33:36 +0000 (10:33 -0500)
commitc5eeac49abb77fff488cfc9b454d7701d58784ae
tree2ec6d7aee78d222b82adaa336cf7b6301efff194
parenteeafd093e645a087311344058bc1d47d5e134345
ext4: fix overhead calculations in ext4_stats, again

"overhead" was a write-only variable in this function after commit
0bc14d56; we set it to 0 for minixdf, or to sbi->s_overhead if !minixdf,
but never read it again after that.

We need to use it, not sbi->s_overhead, when subtracting out overhead
for f_blocks, or we get the wrong answer for minixdf.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c