Skip to content

Commit

Permalink
xfs: fix calculation of freed inode cluster blocks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Myers committed Dec 11, 2013
1 parent db10bdd commit 8e825e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e825e3

Please sign in to comment.