diff options
author | 2019-01-19 13:13:29 -0500 | |
---|---|---|
committer | 2023-10-22 17:08:14 -0400 | |
commit | b030f691da68835e46a50f221c36b59898c91bf6 (patch) | |
tree | bb3c9b213b0588ad560b6ef9ce43171c2e0a00b4 /fs/bcachefs/alloc_types.h | |
parent | bcachefs: Add a workqueue for journal reclaim (diff) | |
download | linux-rng-b030f691da68835e46a50f221c36b59898c91bf6.tar.xz linux-rng-b030f691da68835e46a50f221c36b59898c91bf6.zip |
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; |