diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-25 02:30:10 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:04 +0300 |
commit | e53a961c6b1ced2ac1ab69fdf56706cf21e6f7a6 (patch) | |
tree | d819ad359a6011532bcdec8d8820797d829d3d04 /fs/bcachefs/alloc_types.h | |
parent | e9d017234ff96ed9820dc7cd3a4c940af44330bf (diff) | |
download | linux-e53a961c6b1ced2ac1ab69fdf56706cf21e6f7a6.tar.xz |
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.h | 18 |
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 |