]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: refactor hint based zone allocation
authorHans Holmberg <Hans.Holmberg@wdc.com>
Mon, 1 Sep 2025 10:52:05 +0000 (10:52 +0000)
committerCarlos Maiolino <cem@kernel.org>
Tue, 16 Sep 2025 10:30:41 +0000 (12:30 +0200)
commit0301dae732a5402a68fdb8d8461b97da6b9bccc6
tree817ed006dd1b22a74141c553c03ae908f2122174
parent94deac977fbd0246c971b4f1d17a6385f5e0b1a4
xfs: refactor hint based zone allocation

Replace the co-location code with a matrix that makes it more clear
on how the decisions are made.

The matrix contains scores for zone/file hint combinations. A "GOOD"
score for an open zone will result in immediate co-location while "OK"
combinations will only be picked if we cannot open a new zone.

Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_alloc.c