]> git.ipfire.org Git - thirdparty/linux.git/commit
bcachefs: Tweak threshold for allocator triggering discards
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 12 Jul 2025 23:33:12 +0000 (19:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 16 Jul 2025 21:32:33 +0000 (17:32 -0400)
commit6a1c4323defd18ca732c13d9abf4204ea1a4182f
treec2b9636fe0fe4b00220b86572c434392c09825c4
parentb4d6e204f892846b435ad5df89306a8ad56191f9
bcachefs: Tweak threshold for allocator triggering discards

The allocator path has a "if we're really low on free buckets, check if
we should issue discards" - tweak this to also trigger discards if more
than 1/128th of the device is in need_discard state.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c