Closed morbidrsa closed 3 years ago
https://lore.kernel.org/linux-btrfs/7f676b7d-ab80-5dc1-6fbf-ed29e4bf4512@toxicpanda.com/
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.
https://lore.kernel.org/linux-btrfs/7f676b7d-ab80-5dc1-6fbf-ed29e4bf4512@toxicpanda.com/