ext4: fix overhead calculation used by ext4_statfs()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2012 20:27:05 +0000 (16:27 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:37:45 +0000 (14:37 +0100)
commite44be732863c136e9560c6bf7bf9b9d709a59fca
treed4e976c6238198d10a9e3b751bd02e86f7540e90
parent6d0511498af83b9d09be2f52a69e3f9aca5db81e
ext4: fix overhead calculation used by ext4_statfs()

commit 952fc18ef9ec707ebdc16c0786ec360295e5ff15 upstream.

Commit f975d6bcc7a introduced bug which caused ext4_statfs() to
miscalculate the number of file system overhead blocks.  This causes
the f_blocks field in the statfs structure to be larger than it should
be.  This would in turn cause the "df" output to show the number of
data blocks in the file system and the number of data blocks used to
be larger than they should be.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ext4/bitmap.c
fs/ext4/ext4.h
fs/ext4/resize.c
fs/ext4/super.c