]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: start gc on zonegc_low_space attribute updates
authorHans Holmberg <hans.holmberg@wdc.com>
Wed, 25 Mar 2026 12:43:12 +0000 (13:43 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 30 Mar 2026 14:34:05 +0000 (16:34 +0200)
commit181ea4e2de422aa0a66f355bd59bccccdd169826
treef5c711960f0f13717a0e1459a20c3e42c92542a4
parent8166876aadef90744bb26addc9c5a16b1c8341b5
xfs: start gc on zonegc_low_space attribute updates

Start gc if the agressiveness of zone garbage collection is changed
by the user (if the file system is not read only).

Without this change, the new setting will not be taken into account
until the gc thread is woken up by e.g. a write.

Cc: stable@vger.kernel.org # v6.15
Fixes: 845abeb1f06a8a ("xfs: add tunable threshold parameter for triggering zone GC")
Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_sysfs.c
fs/xfs/xfs_zone_alloc.h
fs/xfs/xfs_zone_gc.c