]> 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)
commit0bc14d5638f24ff73d92415ebe6d1efb0f8310c8
treebd93a2c400c4a50b17b677c3b46d92c71651b2aa
parente814a046d537c3fd02ce99db53564d19d527bdf7
ext4: fix overhead calculation used by ext4_statfs()

Commit 16e839c84da 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