From: Liu Aleaxander Date: Tue, 15 Dec 2009 03:15:38 +0000 (+0800) Subject: EXTLINUX: fix the complie error X-Git-Tag: syslinux-4.00-pre9~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72475f98f597490423adf7299a3c058368f8a08a;p=platform%2Fupstream%2Fsyslinux.git EXTLINUX: fix the complie error I fogot to remove the removed filed of inode in bmap.c file. Signed-off-by: Liu Aleaxander --- 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,