diff options
| author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-01-19 13:13:29 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:14 -0400 |
| commit | b030f691da68835e46a50f221c36b59898c91bf6 (patch) | |
| tree | bb3c9b213b0588ad560b6ef9ce43171c2e0a00b4 /fs/bcachefs/alloc_foreground.h | |
| parent | bcachefs: Add a workqueue for journal reclaim (diff) | |
| download | linux-b030f691da68835e46a50f221c36b59898c91bf6.tar.gz linux-b030f691da68835e46a50f221c36b59898c91bf6.zip | |
bcachefs: Fix some reserve calculations
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.h')
| -rw-r--r-- | fs/bcachefs/alloc_foreground.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/alloc_foreground.h b/fs/bcachefs/alloc_foreground.h index 94389052fa94..6d8ffb0cd06d 100644 --- a/fs/bcachefs/alloc_foreground.h +++ b/fs/bcachefs/alloc_foreground.h @@ -86,6 +86,7 @@ static inline void bch2_open_bucket_get(struct bch_fs *c, unsigned i; open_bucket_for_each(c, &wp->ptrs, ob, i) { + ob->type = wp->type; atomic_inc(&ob->pin); ob_push(c, ptrs, ob); } |
