]> git.baikalelectronics.ru Git - kernel.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)
commite9172e57c26ea513360a64d48a46dabf1093b4a8
treebd93a2c400c4a50b17b677c3b46d92c71651b2aa
parent8bc82f0cb1eed25d65a8e380df92542d8194c525
ext4: fix overhead calculation used by ext4_statfs()

Commit 6d1509ce65d 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