summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_zone_alloc.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-04-25 14:55:20 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-04-25 14:55:20 +0200
commit1caafd919e2a5c483f7a27449f8497fa4b15a44f (patch)
tree0cfd4f3121273ae2bee75d3b01e376f742a31406 /fs/xfs/xfs_zone_alloc.c
parent2492e5aba2be064d0604ae23ae0770ecc0168192 (diff)
parent7da9960b59fb7e590eb8538c9428db55a4ea2d23 (diff)
Merge branch 'perf/urgent'
Merge urgent fixes for dependencies. Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'fs/xfs/xfs_zone_alloc.c')
-rw-r--r--fs/xfs/xfs_zone_alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_zone_alloc.c b/fs/xfs/xfs_zone_alloc.c
index 52af234936a2..d509e49b2aaa 100644
--- a/fs/xfs/xfs_zone_alloc.c
+++ b/fs/xfs/xfs_zone_alloc.c
@@ -1201,6 +1201,13 @@ xfs_mount_zones(
xfs_set_freecounter(mp, XC_FREE_RTEXTENTS,
iz.available + iz.reclaimable);
+ /*
+ * The user may configure GC to free up a percentage of unused blocks.
+ * By default this is 0. GC will always trigger at the minimum level
+ * for keeping max_open_zones available for data placement.
+ */
+ mp->m_zonegc_low_space = 0;
+
error = xfs_zone_gc_mount(mp);
if (error)
goto out_free_zone_info;