mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
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: Ben Myers <bpm@sgi.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
db10bddc7d
commit
8e825e3a02
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user