diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-07-10 00:27:05 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-07-10 00:27:05 +0400 |
commit | 952fc18ef9ec707ebdc16c0786ec360295e5ff15 (patch) | |
tree | bd93a2c400c4a50b17b677c3b46d92c71651b2aa /fs/ext4/bitmap.c | |
parent | f6fb99cadcd44660c68e13f6eab28333653621e6 (diff) | |
download | linux-952fc18ef9ec707ebdc16c0786ec360295e5ff15.tar.xz |
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
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 7e86a6d28c64..a94b9c63ee5c 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,8 +23,6 @@ unsigned int ext4_count_free(char *bitmap, unsigned int numchars) return sum; } -#endif /* EXT4FS_DEBUG */ - int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, struct ext4_group_desc *gdp, struct buffer_head *bh, int sz) |