summaryrefslogtreecommitdiff
path: root/fs/bcachefs/ec.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-05-27 18:40:50 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-06-29 16:57:24 -0400
commit3d86d0704d4d03f76e5098ddf16152ee53f000f8 (patch)
treed30b0e176b3ccf8c0b7c861a3141f1c7b80fbd7c /fs/bcachefs/ec.c
parentc7a8965149de062f190bc81d1eaa8c9b36ea8df5 (diff)
bcachefs: btree_gc can now handle unknown btreesbcachefs-2024-06-20-stable-v6.9bcachefs-for-6.9
Compatibility fix - we no longer have a separate table for which order gc walks btrees in, and special case the stripes btree directly. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> (cherry picked from commit 088d0de81220a74d7d553febb81656927f10bb16)
Diffstat (limited to 'fs/bcachefs/ec.c')
-rw-r--r--fs/bcachefs/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c
index 556a217108d3..0a49c2e9955a 100644
--- a/fs/bcachefs/ec.c
+++ b/fs/bcachefs/ec.c
@@ -880,7 +880,7 @@ static int __ec_stripe_mem_alloc(struct bch_fs *c, size_t idx, gfp_t gfp)
if (!genradix_ptr_alloc(&c->stripes, idx, gfp))
return -BCH_ERR_ENOMEM_ec_stripe_mem_alloc;
- if (c->gc_pos.phase != GC_PHASE_NOT_RUNNING &&
+ if (c->gc_pos.phase != GC_PHASE_not_running &&
!genradix_ptr_alloc(&c->gc_stripes, idx, gfp))
return -BCH_ERR_ENOMEM_ec_stripe_mem_alloc;