xfs: xrep_reap_extents should not destroy the bitmap

Remove the xfs_bitmap_destroy call from the end of xrep_reap_extents
because this sort of violates our rule that the function initializing a
structure should destroy it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
Darrick J. Wong 2020-03-16 17:12:34 -07:00
parent 77ca1eed5a
commit 37a6547d92
2 changed files with 2 additions and 4 deletions

View File

@ -696,7 +696,7 @@ xrep_agfl(
goto err;
/* Dump any AGFL overflow. */
return xrep_reap_extents(sc, &agfl_extents, &XFS_RMAP_OINFO_AG,
error = xrep_reap_extents(sc, &agfl_extents, &XFS_RMAP_OINFO_AG,
XFS_AG_RESV_AGFL);
err:
xfs_bitmap_destroy(&agfl_extents);

View File

@ -617,11 +617,9 @@ xrep_reap_extents(
error = xrep_reap_block(sc, fsbno, oinfo, type);
if (error)
goto out;
break;
}
out:
xfs_bitmap_destroy(bitmap);
return error;
}