[PATCH] ext4: 64bit metadata
In-kernel super block changes to support >32 bit free blocks numbers. Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Alexandre Ratchov <alexandre.ratchov@bull.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a1ddeb7eae
commit
bd81d8eec0
@@ -2438,8 +2438,8 @@ static ext4_fsblk_t ext4_get_inode_block(struct super_block *sb,
|
||||
*/
|
||||
offset = ((ino - 1) % EXT4_INODES_PER_GROUP(sb)) *
|
||||
EXT4_INODE_SIZE(sb);
|
||||
block = le32_to_cpu(gdp[desc].bg_inode_table) +
|
||||
(offset >> EXT4_BLOCK_SIZE_BITS(sb));
|
||||
block = ext4_inode_table(gdp + desc) +
|
||||
(offset >> EXT4_BLOCK_SIZE_BITS(sb));
|
||||
|
||||
iloc->block_group = block_group;
|
||||
iloc->offset = offset & (EXT4_BLOCK_SIZE(sb) - 1);
|
||||
@@ -2506,7 +2506,7 @@ static int __ext4_get_inode_loc(struct inode *inode,
|
||||
goto make_io;
|
||||
|
||||
bitmap_bh = sb_getblk(inode->i_sb,
|
||||
le32_to_cpu(desc->bg_inode_bitmap));
|
||||
ext4_inode_bitmap(desc));
|
||||
if (!bitmap_bh)
|
||||
goto make_io;
|
||||
|
||||
|
Reference in New Issue
Block a user