diff options
author | Laurent Vivier <Laurent.Vivier@bull.net> | 2006-10-11 04:21:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:17 -0400 |
commit | bd81d8eec043094d3ff729a8ff6d5b3a06d3c4b1 (patch) | |
tree | 6813a81b8d8453536839d8bcdc8ed924fdab3f44 /fs/ext4/inode.c | |
parent | a1ddeb7eaecea6a924e3a79aa386797020cb436f (diff) |
[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>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 9db8cff3baa4..effc38afebe3 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -2438,8 +2438,8 @@ static ext4_fsblk_t ext4_get_inode_block(struct super_block *sb, | |||
2438 | */ | 2438 | */ |
2439 | offset = ((ino - 1) % EXT4_INODES_PER_GROUP(sb)) * | 2439 | offset = ((ino - 1) % EXT4_INODES_PER_GROUP(sb)) * |
2440 | EXT4_INODE_SIZE(sb); | 2440 | EXT4_INODE_SIZE(sb); |
2441 | block = le32_to_cpu(gdp[desc].bg_inode_table) + | 2441 | block = ext4_inode_table(gdp + desc) + |
2442 | (offset >> EXT4_BLOCK_SIZE_BITS(sb)); | 2442 | (offset >> EXT4_BLOCK_SIZE_BITS(sb)); |
2443 | 2443 | ||
2444 | iloc->block_group = block_group; | 2444 | iloc->block_group = block_group; |
2445 | iloc->offset = offset & (EXT4_BLOCK_SIZE(sb) - 1); | 2445 | iloc->offset = offset & (EXT4_BLOCK_SIZE(sb) - 1); |
@@ -2506,7 +2506,7 @@ static int __ext4_get_inode_loc(struct inode *inode, | |||
2506 | goto make_io; | 2506 | goto make_io; |
2507 | 2507 | ||
2508 | bitmap_bh = sb_getblk(inode->i_sb, | 2508 | bitmap_bh = sb_getblk(inode->i_sb, |
2509 | le32_to_cpu(desc->bg_inode_bitmap)); | 2509 | ext4_inode_bitmap(desc)); |
2510 | if (!bitmap_bh) | 2510 | if (!bitmap_bh) |
2511 | goto make_io; | 2511 | goto make_io; |
2512 | 2512 | ||