From 982066652b87ef51f6e185c2e76bf85382d9c2a6 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Fri, 10 Jul 2020 15:35:45 -0400 Subject: [PATCH] xfs_repair: drop lostblocks from build_agf_agfl We don't do anything with this parameter, so get rid of it. Fixes: ef4332b8 ("xfs_repair: add freesp btree block overflow to the free space") Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Signed-off-by: Eric Sandeen --- repair/phase5.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/repair/phase5.c b/repair/phase5.c index 0b8a55ffd..f942ea17b 100644 --- a/repair/phase5.c +++ b/repair/phase5.c @@ -2023,7 +2023,6 @@ build_agf_agfl( struct bt_status *bno_bt, struct bt_status *bcnt_bt, xfs_extlen_t freeblks, /* # free blocks in tree */ - int lostblocks, /* # blocks that will be lost */ struct bt_status *rmap_bt, struct bt_status *refcnt_bt, struct xfs_slab *lost_fsb) @@ -2439,9 +2438,9 @@ phase5_func( /* * set up agf and agfl */ - build_agf_agfl(mp, agno, &bno_btree_curs, - &bcnt_btree_curs, freeblks1, extra_blocks, - &rmap_btree_curs, &refcnt_btree_curs, lost_fsb); + build_agf_agfl(mp, agno, &bno_btree_curs, &bcnt_btree_curs, + freeblks1, &rmap_btree_curs, + &refcnt_btree_curs, lost_fsb); /* * build inode allocation tree. */ -- 2.47.2