diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-01-19 21:13:29 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:14 +0300 |
commit | b030f691da68835e46a50f221c36b59898c91bf6 (patch) | |
tree | bb3c9b213b0588ad560b6ef9ce43171c2e0a00b4 /fs/bcachefs/alloc_types.h | |
parent | 0519b72dd24754c560b6ac47b0224aaf462978c8 (diff) | |
download | linux-b030f691da68835e46a50f221c36b59898c91bf6.tar.xz |
bcachefs: Fix some reserve calculations
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h index ef3e400c7d3d..832568dc9551 100644 --- a/fs/bcachefs/alloc_types.h +++ b/fs/bcachefs/alloc_types.h @@ -56,9 +56,10 @@ struct open_bucket { spinlock_t lock; atomic_t pin; u8 freelist; - bool valid; - bool on_partial_list; u8 ec_idx; + u8 type; + unsigned valid:1; + unsigned on_partial_list:1; unsigned sectors_free; struct bch_extent_ptr ptr; struct ec_stripe_new *ec; |