aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc.c
diff options
context:
space:
mode:
authorBen Myers <bpm@sgi.com>2013-12-10 15:59:31 -0500
committerBen Myers <bpm@sgi.com>2013-12-11 16:22:43 -0500
commit8e825e3a02ff20973154559c33e662cacedc4458 (patch)
tree0fd9404fa4589cdd4319f211214bf407bd0c368d /fs/xfs/xfs_ialloc.c
parentdb10bddc7d4f412bcd8630fc479fa1eb009e325b (diff)
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>
Diffstat (limited to 'fs/xfs/xfs_ialloc.c')
-rw-r--r--fs/xfs/xfs_ialloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index e87719c5bebe..7a728f9fc0be 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -1229,7 +1229,7 @@ xfs_difree(
1229 } 1229 }
1230 1230
1231 xfs_bmap_add_free(XFS_AGB_TO_FSB(mp, 1231 xfs_bmap_add_free(XFS_AGB_TO_FSB(mp,
1232 agno, XFS_INO_TO_AGBNO(mp,rec.ir_startino)), 1232 agno, XFS_AGINO_TO_AGBNO(mp, rec.ir_startino)),
1233 XFS_IALLOC_BLOCKS(mp), flist, mp); 1233 XFS_IALLOC_BLOCKS(mp), flist, mp);
1234 } else { 1234 } else {
1235 *delete = 0; 1235 *delete = 0;