diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-28 00:32:38 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:05 +0300 |
commit | ec14fc6010fdcc40e54e289afc657a676ce93e72 (patch) | |
tree | e8fba04ba538c638d926763706411559a43016a6 /fs/bcachefs/alloc_types.h | |
parent | 494036d862dfff1de9782492692da225479b7146 (diff) | |
download | linux-ec14fc6010fdcc40e54e289afc657a676ce93e72.tar.xz |
bcachefs: Kill JOURNAL_WATERMARK
This unifies JOURNAL_WATERMARK with BCH_WATERMARK; we're working towards
specifying watermarks once in the transaction commit path.
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 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h index ddcaf0631a8b..c33a29954e59 100644 --- a/fs/bcachefs/alloc_types.h +++ b/fs/bcachefs/alloc_types.h @@ -17,12 +17,12 @@ struct bucket_alloc_state { }; #define BCH_WATERMARKS() \ - x(reclaim) \ - x(btree_copygc) \ - x(btree) \ - x(copygc) \ + x(stripe) \ x(normal) \ - x(stripe) + x(copygc) \ + x(btree) \ + x(btree_copygc) \ + x(reclaim) enum bch_watermark { #define x(name) BCH_WATERMARK_##name, @@ -31,6 +31,9 @@ enum bch_watermark { BCH_WATERMARK_NR, }; +#define BCH_WATERMARK_BITS 3 +#define BCH_WATERMARK_MASK ~(~0 << BCH_WATERMARK_BITS) + #define OPEN_BUCKETS_COUNT 1024 #define WRITE_POINT_HASH_NR 32 |