summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-08-22 17:09:16 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:26 -0400
commit4e1510c3e9a053edc1fdfe56fc96009919ceebd8 (patch)
tree5bafe6f114442e954908675a362cd09d3a6643c4 /fs/bcachefs/bcachefs.h
parent3fb5ebcdd4b0599ba8d20a322d322f3a1aaea381 (diff)
downloadlwn-4e1510c3e9a053edc1fdfe56fc96009919ceebd8.tar.gz
lwn-4e1510c3e9a053edc1fdfe56fc96009919ceebd8.zip
bcachefs: Add a hint for allocating new stripes
This way we aren't doing a full linear scan every time we create a new stripe. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index 410fce3ed8d4..9bee837dedcf 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -745,6 +745,7 @@ struct bch_fs {
/* ERASURE CODING */
struct list_head ec_new_stripe_list;
struct mutex ec_new_stripe_lock;
+ u64 ec_stripe_hint;
struct bio_set ec_bioset;