naota / linux

Linux kernel source tree
Other
3 stars 1 forks source link

Account ro BGs as ro in zoned mode as well #34

Closed morbidrsa closed 3 years ago

morbidrsa commented 3 years ago

https://lore.kernel.org/linux-btrfs/7f676b7d-ab80-5dc1-6fbf-ed29e4bf4512@toxicpanda.com/

naota commented 3 years ago

I don't think so. Pinned bytes (once used and freeing bytes) must be accounted for zone_unusable anytime. If we account for it as readonly, we need to recalculate zone_unusable space when marking the BG RW.