projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d84f466
)
EXTLINUX: fix the complie error
author
Liu Aleaxander
<Aleaxander@gmail.com>
Tue, 15 Dec 2009 03:15:38 +0000
(11:15 +0800)
committer
Liu 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
patch
|
blob
|
history
diff --git
a/core/fs/ext2/bmap.c
b/core/fs/ext2/bmap.c
index
7d13dec
..
1ef3008
100644
(file)
--- 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,