summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_ag.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-10-22 16:40:58 -0700
commit5337eb2d71d9de2191aa238afd69cc6141a7062d (patch)
tree785a6502080d542f178b1a216706df31fcc3c9d2 /fs/xfs/libxfs/xfs_ag.c
parent9168e9bfe459112ffcf3f7431a0573bf07e059c5 (diff)
xfs: convert "skip_discard" to a proper flags bitsetextfree-intent-cleanups_2021-10-22
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/libxfs/xfs_ag.c')
-rw-r--r--fs/xfs/libxfs/xfs_ag.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ag.c b/fs/xfs/libxfs/xfs_ag.c
index b1c87d6ad34c..d0035e156a25 100644
--- a/fs/xfs/libxfs/xfs_ag.c
+++ b/fs/xfs/libxfs/xfs_ag.c
@@ -848,7 +848,8 @@ xfs_ag_shrink_space(
if (err2 != -ENOSPC)
goto resv_err;
- xfs_free_extent_later(*tpp, args.fsbno, delta, NULL, true);
+ xfs_free_extent_later(*tpp, args.fsbno, delta, NULL,
+ XFS_FREE_EXTENT_SKIP_DISCARD);
/*
* Roll the transaction before trying to re-init the per-ag