diff options
author | Ben Myers <bpm@sgi.com> | 2013-12-10 20:59:31 (GMT) |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-12-11 21:22:43 (GMT) |
commit | 8e825e3a02ff20973154559c33e662cacedc4458 (patch) | |
tree | 0fd9404fa4589cdd4319f211214bf407bd0c368d | |
parent | db10bddc7d4f412bcd8630fc479fa1eb009e325b (diff) | |
download | linux-8e825e3a02ff20973154559c33e662cacedc4458.tar.xz |
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>
-rw-r--r-- | fs/xfs/xfs_ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index e87719c..7a728f9f 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c @@ -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; |