]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:23:12 +0000 (08:23 -0700)
commit8aeb00ff85ad25453765dd339b408c0087db1527
tree001fd81e6f5cdc1903ab63e72a6e1351ea92c353
parent74c429a11be427b0f2a7f02e585dc49a148a0e82
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/bitmap.c
fs/ext4/ext4.h
fs/ext4/resize.c
fs/ext4/super.c