Re: [PATCH 7/7] xfs: reduce special casing for the open GC zone

Damien Le Moal
2026-03-31T09:53:28Z

On 3/30/26 14:44, Christoph Hellwig wrote:
> Currently the open zone used for garbage collection is a special snow
> flake, and it that has been a bit annoying for some further zoned XFS

s/it that has/it has

> work I've been doing.
>
> Remove the zi_open_gc_field and instead track the open GC zone in the
> zi_open_zones list together with the normal open zones, and keep an extra
> pointer and a reference of in the GC thread's data structure. This means
> anything iterating over open zones just has to look at zi_open_zones, and
> the life time rules are consistent. It also helps to add support for
> multiple open GC zones if we ever need them, and removes a bit of code.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

--
Damien Le Moal
Western Digital Research