]> git.karo-electronics.de Git - linux-beck.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)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2012 20:27:05 +0000 (16:27 -0400)
commit952fc18ef9ec707ebdc16c0786ec360295e5ff15
treebd93a2c400c4a50b17b677c3b46d92c71651b2aa
parentf6fb99cadcd44660c68e13f6eab28333653621e6
ext4: fix overhead calculation used by ext4_statfs()

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>
Cc: stable@kernel.org
fs/ext4/bitmap.c
fs/ext4/ext4.h
fs/ext4/resize.c
fs/ext4/super.c