EXTLINUX: fix the complie error
authorLiu Aleaxander <Aleaxander@gmail.com>
Tue, 15 Dec 2009 03:15:38 +0000 (11:15 +0800)
committerLiu Aleaxander <Aleaxander@gmail.com>
Tue, 15 Dec 2009 03:15:38 +0000 (11:15 +0800)
I fogot to  remove the removed filed of inode in bmap.c file.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
core/fs/ext2/bmap.c

index 7d13dec..1ef3008 100644 (file)
@@ -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,