summaryrefslogtreecommitdiff
path: root/libbcachefs/alloc_background.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-01-15 12:19:55 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2025-01-15 12:20:30 -0500
commit35a13784a2a5fe4646a51b284a599f664eaf7d63 (patch)
treeecf0c0398ef05ac1bf68ba08a8e91fa6ceade08c /libbcachefs/alloc_background.c
parent16e23eaec121d3402086dddbf07baaddd4c32dce (diff)
Update bcachefs sources to 78c6c8127e21 bcachefs: Fix check_inode_hash_info_matches_root()
Diffstat (limited to 'libbcachefs/alloc_background.c')
-rw-r--r--libbcachefs/alloc_background.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/alloc_background.c b/libbcachefs/alloc_background.c
index 94e7bc88..fc2ef33b 100644
--- a/libbcachefs/alloc_background.c
+++ b/libbcachefs/alloc_background.c
@@ -1402,7 +1402,8 @@ int bch2_check_discard_freespace_key(struct btree_trans *trans, struct btree_ite
struct btree_iter alloc_iter;
struct bkey_s_c alloc_k = bch2_bkey_get_iter(trans, &alloc_iter,
- BTREE_ID_alloc, bucket, BTREE_ITER_cached);
+ BTREE_ID_alloc, bucket,
+ async_repair ? BTREE_ITER_cached : 0);
int ret = bkey_err(alloc_k);
if (ret)
return ret;