diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-07-09 16:27:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-09 08:31:41 -0700 |
commit | 25471391e7a0acace5821318fc0123a0a5cfdbbe (patch) | |
tree | 9baba899124c6d1e893bd8595383dc0b391e3e23 /fs/ext4/bitmap.c | |
parent | 2a271d6a66d1d10f001c5653da68c1f72d0ded59 (diff) |
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>
Diffstat (limited to 'fs/ext4/bitmap.c')
-rw-r--r-- | fs/ext4/bitmap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/bitmap.c b/fs/ext4/bitmap.c index 012faaaec4a..bbde5d58297 100644 --- a/fs/ext4/bitmap.c +++ b/fs/ext4/bitmap.c @@ -11,8 +11,6 @@ #include <linux/jbd2.h> #include "ext4.h" -#ifdef EXT4FS_DEBUG - static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; unsigned int ext4_count_free(char *bitmap, unsigned int numchars) @@ -25,5 +23,3 @@ unsigned int ext4_count_free(char *bitmap, unsigned int numchars) return sum; } -#endif /* EXT4FS_DEBUG */ - |