summaryrefslogtreecommitdiff
path: root/fs/bcachefs/alloc_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-24 19:30:10 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:04 -0400
commite53a961c6b1ced2ac1ab69fdf56706cf21e6f7a6 (patch)
treed819ad359a6011532bcdec8d8820797d829d3d04 /fs/bcachefs/alloc_types.h
parente9d017234ff96ed9820dc7cd3a4c940af44330bf (diff)
bcachefs: Rename enum alloc_reserve -> bch_watermark
This is prep work for consolidating with JOURNAL_WATERMARK. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_types.h')
-rw-r--r--fs/bcachefs/alloc_types.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h
index cd0c50aae416..a01fddfba004 100644
--- a/fs/bcachefs/alloc_types.h
+++ b/fs/bcachefs/alloc_types.h
@@ -16,20 +16,18 @@ struct bucket_alloc_state {
u64 skipped_nouse;
};
-struct ec_bucket_buf;
-
-#define BCH_ALLOC_RESERVES() \
- x(btree_movinggc) \
+#define BCH_WATERMARKS() \
+ x(btree_copygc) \
x(btree) \
- x(movinggc) \
- x(none) \
+ x(copygc) \
+ x(normal) \
x(stripe)
-enum alloc_reserve {
-#define x(name) RESERVE_##name,
- BCH_ALLOC_RESERVES()
+enum bch_watermark {
+#define x(name) BCH_WATERMARK_##name,
+ BCH_WATERMARKS()
#undef x
- RESERVE_NR,
+ BCH_WATERMARK_NR,
};
#define OPEN_BUCKETS_COUNT 1024