提交 8e825e3a 编写于 作者: B Ben Myers

xfs: fix calculation of freed inode cluster blocks

rec.ir_startino is an agino rather than an ino.  Use the correct macro
when dealing with it in xfs_difree.
Signed-off-by: NBen Myers <bpm@sgi.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
上级 db10bddc
......@@ -1229,7 +1229,7 @@ xfs_difree(
}
xfs_bmap_add_free(XFS_AGB_TO_FSB(mp,
agno, XFS_INO_TO_AGBNO(mp,rec.ir_startino)),
agno, XFS_AGINO_TO_AGBNO(mp, rec.ir_startino)),
XFS_IALLOC_BLOCKS(mp), flist, mp);
} else {
*delete = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册