summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/repair.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:15:58 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:29:12 -0800
commit361f5659cc86fc6b4ec733ae0148cc8d1be407d7 (patch)
treea7284eea36afe43919253dfb317cfa2b38449113 /fs/xfs/scrub/repair.c
parent689466bfff44adfc8d79e8cc375d6d64b921a337 (diff)
xfs: convert "skip_discard" to a proper flags bitsetextfree-intent-cleanups_2021-12-15
Convert the boolean to skip discard on free into a proper flags field so that we can add more flags in the next patch. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/repair.c')
-rw-r--r--fs/xfs/scrub/repair.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/scrub/repair.c b/fs/xfs/scrub/repair.c
index c5cb9e84df16..94245da9c63a 100644
--- a/fs/xfs/scrub/repair.c
+++ b/fs/xfs/scrub/repair.c
@@ -674,8 +674,8 @@ xrep_newbt_destroy_reservation(
XFS_FSB_TO_AGBNO(sc->mp, resv->fsbno),
resv->len, xnr->oinfo.oi_owner);
- __xfs_free_extent_later(sc->tp, resv->fsbno, resv->len, &xnr->oinfo,
- true);
+ xfs_free_extent_later(sc->tp, resv->fsbno, resv->len, &xnr->oinfo,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
return 0;
}
@@ -1092,7 +1092,8 @@ xrep_agextent_reap(
* Roll the transaction every 100 or so EFIs so that we don't
* exceed the log reservation.
*/
- __xfs_free_extent_later(sc->tp, fsbno, aglen, rs->oinfo, true);
+ xfs_free_extent_later(sc->tp, fsbno, aglen, rs->oinfo,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
rs->deferred++;
*want_roll = rs->deferred > 100;
break;
@@ -1568,8 +1569,8 @@ xrep_bmapi_reap_extent(
if (error)
goto out_agf;
- __xfs_free_extent_later(sc->tp, imap->br_startblock, len, NULL,
- true);
+ xfs_free_extent_later(sc->tp, imap->br_startblock, len, NULL,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
}
/* Update the mapping to reflect the work not yet done and exit. */