linux-kernelorg-stable/include
Naohiro Aota 453a73c306 btrfs: zoned: reclaim unused zone by zone resetting
On the zoned mode, once used and freed region is still not reusable after the
freeing. The underlying zone needs to be reset before reusing. Btrfs resets a
zone when it removes a block group, and then new block group is allocated on
the zones to reuse the zones. But, it is sometime too late to catch up with a
write side.

This commit introduces a new space-info reclaim method ZONE_RESET. That will
pick a block group from the unused list and reset its zone to reuse the
zone_unusable space. It is faster than removing the block group and re-creating
a new block group on the same zones.

For the first implementation, the ZONE_RESET is only applied to a block group
whose region is fully zone_unusable. Reclaiming partial zone_unusable block
group could be implemented later.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2025-01-13 14:53:14 +01:00
..
acpi
asm-generic
clocksource
crypto
cxl
drm
dt-bindings
keys
kunit
kvm
linux soc: fixes for 6.13, part 3 2025-01-11 10:42:05 -08:00
math-emu
media
memory
misc
net vfs-6.13-rc7.fixes.2 2025-01-10 09:11:11 -08:00
pcmcia
ras
rdma
rv
scsi
soc
sound
target
trace btrfs: zoned: reclaim unused zone by zone resetting 2025-01-13 14:53:14 +01:00
uapi
ufs
vdso
video
xen