aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2025-05-20 07:20:47 +0000
committerDavid Sterba <[email protected]>2025-07-21 21:42:24 +0000
commit55f7c65b2f69c7e4cb7aa7c1654a228ccf734fd8 (patch)
treee685d032378d084d04b6ee3e139e905cc66cc0e8 /fs/btrfs/tree-log.c
parentbtrfs: unfold transaction abort at clone_copy_inline_extent() (diff)
downloadkernel-55f7c65b2f69c7e4cb7aa7c1654a228ccf734fd8.tar.gz
kernel-55f7c65b2f69c7e4cb7aa7c1654a228ccf734fd8.zip
btrfs: zoned: use filesystem size not disk size for reclaim decision
When deciding if a zoned filesystem is reaching the threshold to reclaim data block groups, look at the size of the filesystem not to potentially total available size of all drives in the filesystem. Especially if a filesystem was created with mkfs' -b option, constraining it to only a portion of the block device, the numbers won't match and potentially garbage collection is kicking in too late. Fixes: 3687fcb0752a ("btrfs: zoned: make auto-reclaim less aggressive") CC: [email protected] # 6.1+ Reviewed-by: Damien Le Moal <[email protected]> Tested-by: Damien Le Moal <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions