diff options
author | Chen Baozi <baozich@gmail.com> | 2012-07-11 17:02:57 +0800 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-21 01:21:45 -0300 |
commit | 549dc8a73f31c087b7cc68ec27c20890ca1cc46f (patch) | |
tree | ca58acf35be0d110506d479f177e8917d2c880ab | |
parent | 13546ed6db73f7d179292fb9db1613d5d03c2848 (diff) | |
download | syslinux-549dc8a73f31c087b7cc68ec27c20890ca1cc46f.tar.gz syslinux-549dc8a73f31c087b7cc68ec27c20890ca1cc46f.tar.xz syslinux-549dc8a73f31c087b7cc68ec27c20890ca1cc46f.zip |
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@gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | core/fs/xfs/xfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c index b3cc351a..201680fd 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); |