diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2009-01-06 05:46:04 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-06 05:46:04 +0300 |
commit | 648f5879f5892dddd3ba71cd0d285599f40f2512 (patch) | |
tree | dee22aa9be9e47c9a9a25ce38481079aaf8858c8 /fs/ext4/ialloc.c | |
parent | 2ccb5fb9f113dae969d1ae9b6c10e80fa34f8cd3 (diff) | |
download | linux-648f5879f5892dddd3ba71cd0d285599f40f2512.tar.xz |
ext4: mark the blocks/inode bitmap beyond end of group as used
We need to mark the block/inode bitmap beyond the end of the group
with '1'.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 7b12aedc5319..e3aa3fa38608 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -84,7 +84,7 @@ unsigned ext4_init_inode_bitmap(struct super_block *sb, struct buffer_head *bh, } memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / 8); - mark_bitmap_end(EXT4_INODES_PER_GROUP(sb), EXT4_BLOCKS_PER_GROUP(sb), + mark_bitmap_end(EXT4_INODES_PER_GROUP(sb), sb->s_blocksize * 8, bh->b_data); return EXT4_INODES_PER_GROUP(sb); |