xfs: fix calculation of freed inode cluster blocks
PATCH v2 1/1 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 <[email protected]>
---
v2: remove RFC as per Dave's suggestion.
fs/xfs/xfs_ialloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_ialloc.c +1 -1
@@ -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 ;
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 4 lines · Ben Myers
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 <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs