summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/newbt.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-14 11:15:26 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-10-14 14:17:12 -0700
commit0bd217fd35635b40137742a2183cb66b72648ba1 (patch)
treed3fbe25e415044cfd1f331cb7bfd5e0ded8c2836 /fs/xfs/scrub/newbt.c
parent14b661224091388757e0e337a70356d42bbf94b3 (diff)
xfs: convert "skip_discard" to a proper flags bitsetextfree-intent-cleanups_2022-10-14
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/newbt.c')
-rw-r--r--fs/xfs/scrub/newbt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/scrub/newbt.c b/fs/xfs/scrub/newbt.c
index 3739b420e0af..c024afb14f77 100644
--- a/fs/xfs/scrub/newbt.c
+++ b/fs/xfs/scrub/newbt.c
@@ -414,8 +414,8 @@ xrep_newbt_cancel_resv(
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);
/* Drop the intent drain after we commit the new item. */
xfs_fs_drop_intents(sc->mp, false, resv->fsbno);
@@ -506,8 +506,8 @@ xrep_newbt_destroy_resv(
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);
}
/*