summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/alloc_foreground.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-01-19 13:13:29 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:14 -0400
commitb030f691da68835e46a50f221c36b59898c91bf6 (patch)
treebb3c9b213b0588ad560b6ef9ce43171c2e0a00b4 /fs/bcachefs/alloc_foreground.h
parentbcachefs: Add a workqueue for journal reclaim (diff)
downloadlinux-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.h1
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);
}