diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-16 17:12:34 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-18 08:12:23 -0700 |
commit | 37a6547d92af4d16778cead78ef2f9233f5573fe (patch) | |
tree | 19624e2a5c66a78b3f08395c193644e13a53880b /fs/xfs/scrub/repair.c | |
parent | 77ca1eed5a7d2bf0905562eb1a15aac76bc19fe4 (diff) | |
download | linux-37a6547d92af4d16778cead78ef2f9233f5573fe.tar.gz linux-37a6547d92af4d16778cead78ef2f9233f5573fe.tar.bz2 linux-37a6547d92af4d16778cead78ef2f9233f5573fe.zip |
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>
Diffstat (limited to 'fs/xfs/scrub/repair.c')
-rw-r--r-- | fs/xfs/scrub/repair.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/scrub/repair.c b/fs/xfs/scrub/repair.c index 0d5509bf8581..4ff24501e8ac 100644 --- a/fs/xfs/scrub/repair.c +++ b/fs/xfs/scrub/repair.c @@ -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; } |