aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <alexandre.ratchov@bull.net>2006-10-11 04:21:15 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:18 -0400
commit8fadc14323684c547f74cf2f4d13517c6c264731 (patch)
tree2b3eedf241a0d7c86f6b808f76e267ded28506ed /fs/ext4/inode.c
parent0d1ee42f27d30eed1659f3e85bcbbc7b3711f61f (diff)
[PATCH] ext4: move block number hi bits
move '_hi' bits of block numbers in the larger part of the block group descriptor structure Signed-off-by: Alexandre Ratchov <alexandre.ratchov@bull.net> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> 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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index d03e7d85a638..0a60ec5a16db 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2439,9 +2439,8 @@ static ext4_fsblk_t ext4_get_inode_block(struct super_block *sb,
2439 */ 2439 */
2440 offset = ((ino - 1) % EXT4_INODES_PER_GROUP(sb)) * 2440 offset = ((ino - 1) % EXT4_INODES_PER_GROUP(sb)) *
2441 EXT4_INODE_SIZE(sb); 2441 EXT4_INODE_SIZE(sb);
2442 block = ext4_inode_table(gdp) + (offset >> EXT4_BLOCK_SIZE_BITS(sb)); 2442 block = ext4_inode_table(sb, gdp) +
2443 2443 (offset >> EXT4_BLOCK_SIZE_BITS(sb));
2444
2445 2444
2446 iloc->block_group = block_group; 2445 iloc->block_group = block_group;
2447 iloc->offset = offset & (EXT4_BLOCK_SIZE(sb) - 1); 2446 iloc->offset = offset & (EXT4_BLOCK_SIZE(sb) - 1);
@@ -2508,7 +2507,7 @@ static int __ext4_get_inode_loc(struct inode *inode,
2508 goto make_io; 2507 goto make_io;
2509 2508
2510 bitmap_bh = sb_getblk(inode->i_sb, 2509 bitmap_bh = sb_getblk(inode->i_sb,
2511 ext4_inode_bitmap(desc)); 2510 ext4_inode_bitmap(inode->i_sb, desc));
2512 if (!bitmap_bh) 2511 if (!bitmap_bh)
2513 goto make_io; 2512 goto make_io;
2514 2513