diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-02 09:08:46 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:55 +0300 |
commit | b1cfe5ed2b5d5dbd2d8bcb2a4c1131513a1b3e1c (patch) | |
tree | d4f2398d3b830e19c34f5c11511f38718ee1e40a /fs/bcachefs/buckets.h | |
parent | c85d7796090741fe6a75f953afae964344066448 (diff) | |
download | linux-b1cfe5ed2b5d5dbd2d8bcb2a4c1131513a1b3e1c.tar.xz |
bcachefs: Improve dev_alloc_debug_to_text()
Now we also print the number of buckets reserved for each watermark.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r-- | fs/bcachefs/buckets.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index e6d476f387a1..22721bfea414 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -155,6 +155,8 @@ static inline u64 bch2_dev_buckets_reserved(struct bch_dev *ca, enum alloc_reser s64 reserved = 0; switch (reserve) { + case RESERVE_NR: + unreachable(); case RESERVE_none: reserved += ca->mi.nbuckets >> 6; fallthrough; |