[syslinux:elflink] Fix the calculation of the block of the root of the inode B+tree.
syslinux-bot for Chen Baozi
baozich at gmail.com
Tue Nov 27 12:57:06 PST 2012
Commit-ID: 549dc8a73f31c087b7cc68ec27c20890ca1cc46f
Gitweb: http://www.syslinux.org/commit/549dc8a73f31c087b7cc68ec27c20890ca1cc46f
Author: Chen Baozi <baozich at gmail.com>
AuthorDate: Wed, 11 Jul 2012 17:02:57 +0800
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sat, 21 Jul 2012 01:21:45 -0300
Fix the calculation of the block of the root of the inode B+tree.
We have saved the first block's No. to the blk by
"XFS_AGNO_TO_FSB(fs, agno)". So here the relative block number
in a.g. should plus to our previous calculation result, rather
than "agno" which is the a.g.'s No.,
Signed-off-by: Chen Baozi <baozich at gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
core/fs/xfs/xfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index b3cc351..201680f 100644
--- a/core/fs/xfs/xfs.c
+++ b/core/fs/xfs/xfs.c
@@ -123,7 +123,7 @@ static struct inode *xfs_iget_root(struct fs_info *fs)
/* Get block number relative to the AG containing the root of the inode
* B+tree.
*/
- blk = agno + be32_to_cpu(agi->agi_root);
+ blk += be32_to_cpu(agi->agi_root);
xfs_debug("inode B+tree's block %llu", blk);
More information about the Syslinux-commits
mailing list