]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: delay initial open of the GC zone
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Mar 2026 15:27:23 +0000 (17:27 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 7 Apr 2026 11:28:47 +0000 (13:28 +0200)
commite771da0727c13ab2cb89ee47f2edcda8b87b2c73
tree06da7def4348b1cac9e276ca146a60a9805d0949
parent29a7b2614357393b176ef06ba5bc3ff5afc8df69
xfs: delay initial open of the GC zone

The code currently used to select the new GC target zone when the
previous one is full also handles the case where there is no current GC
target zone at all.  Make use of that to simplify the logic in
xfs_zone_gc_mount.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_gc.c