From 72475f98f597490423adf7299a3c058368f8a08a Mon Sep 17 00:00:00 2001 From: Liu Aleaxander Date: Tue, 15 Dec 2009 11:15:38 +0800 Subject: [PATCH] EXTLINUX: fix the complie error I fogot to remove the removed filed of inode in bmap.c file. Signed-off-by: Liu Aleaxander --- core/fs/ext2/bmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/fs/ext2/bmap.c b/core/fs/ext2/bmap.c index 7d13dec..1ef3008 100644 --- a/core/fs/ext2/bmap.c +++ b/core/fs/ext2/bmap.c @@ -86,8 +86,7 @@ static unsigned int bmap_traditional(struct fs_info *fs, struct inode *inode, uint32_t block) { - int block_size = 1 << (SECTOR_SHIFT + fs->blk_bits); - int addr_per_block = block_size >> 2; + int addr_per_block = BLOCK_SIZE(fs) >> 2; uint32_t direct_blocks = EXT2_NDIR_BLOCKS, indirect_blocks = addr_per_block, double_blocks = addr_per_block * addr_per_block, -- 2.7.4