summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/reap.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-11-09 19:08:00 -0800
commit4ae7e45a0598e55ecc5bd4a966c5ee0aec2c7ab1 (patch)
tree4f8011226f7eb6a1cad394a2550194fd6dd181d8 /fs/xfs/scrub/reap.c
parent88c22a3cd6f0aa97735c89eaa6056753c32c2f39 (diff)
xfs: convert "skip_discard" to a proper flags bitsetextfree-intent-cleanups_2022-11-09
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/reap.c')
-rw-r--r--fs/xfs/scrub/reap.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/xfs/scrub/reap.c b/fs/xfs/scrub/reap.c
index f43ad4dfc6f7..151afacab982 100644
--- a/fs/xfs/scrub/reap.c
+++ b/fs/xfs/scrub/reap.c
@@ -382,7 +382,8 @@ xreap_agextent(
rs->force_roll = true;
xfs_refcount_free_cow_extent(sc->tp, fsbno, *aglenp);
- __xfs_free_extent_later(sc->tp, fsbno, *aglenp, NULL, true);
+ xfs_free_extent_later(sc->tp, fsbno, *aglenp, NULL,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
return 0;
}
@@ -412,7 +413,8 @@ xreap_agextent(
* to minimize the window in which we could crash and lose the
* old blocks.
*/
- __xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, true);
+ xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
rs->deferred++;
break;
}
@@ -959,8 +961,9 @@ xreap_ifork_extent(
xfs_bmap_unmap_extent(sc->tp, ip, whichfork, imap);
xfs_trans_mod_dquot_byino(sc->tp, ip, XFS_TRANS_DQ_BCOUNT,
-(int64_t)imap->br_blockcount);
- __xfs_free_extent_later(sc->tp, imap->br_startblock,
- imap->br_blockcount, NULL, true);
+ xfs_free_extent_later(sc->tp, imap->br_startblock,
+ imap->br_blockcount, NULL,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
}
out_agf: