bcachefs: try_alloc_bucket() now uses bch2_check_discard_freespace_key()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 27 Oct 2024 04:40:43 +0000 (00:40 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:18 +0000 (01:36 -0500)
commitc97118f1dc5081171625f66f082fe12980a4bcbe
treeca6c57a25a553bcaaaccc83cfe9c3a25798cd22f
parent731d06e138b07e1e54ac84a22054ca83ab5b1082
bcachefs: try_alloc_bucket() now uses bch2_check_discard_freespace_key()

check_discard_freespace_key() was doing all the same checks as
try_alloc_bucket(), but with repair.

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