From: Ben Myers Date: Tue, 10 Dec 2013 20:59:31 +0000 (-0600) Subject: xfs: fix calculation of freed inode cluster blocks X-Git-Tag: v4.14-rc1~8163^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e825e3a02ff20973154559c33e662cacedc4458;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Christoph Hellwig --- 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;