diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-25 01:09:44 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:12 +0300 |
commit | dfe9bfb32e380df67d25cd5afb887b3466230e03 (patch) | |
tree | 165d9ff7b5a4e9c3e701b69758be49e9e91edaf2 /fs/bcachefs/ec.h | |
parent | ad7ae8d63fa82e5d713e73a1a6a4ca9728f84898 (diff) | |
download | linux-dfe9bfb32e380df67d25cd5afb887b3466230e03.tar.xz |
bcachefs: Stripes now properly subject to gc
gc now verifies the contents of the stripes radix tree, important for
persistent alloc info
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec.h')
-rw-r--r-- | fs/bcachefs/ec.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/bcachefs/ec.h b/fs/bcachefs/ec.h index bcf06529dcfc..c35de8b1ef64 100644 --- a/fs/bcachefs/ec.h +++ b/fs/bcachefs/ec.h @@ -93,14 +93,16 @@ void bch2_ec_stripe_head_put(struct ec_stripe_head *); struct ec_stripe_head *bch2_ec_stripe_head_get(struct bch_fs *, unsigned, unsigned, unsigned); -void bch2_stripes_heap_update(struct bch_fs *, struct ec_stripe *, size_t); -void bch2_stripes_heap_del(struct bch_fs *, struct ec_stripe *, size_t); -void bch2_stripes_heap_insert(struct bch_fs *, struct ec_stripe *, size_t); +void bch2_stripes_heap_update(struct bch_fs *, struct stripe *, size_t); +void bch2_stripes_heap_del(struct bch_fs *, struct stripe *, size_t); +void bch2_stripes_heap_insert(struct bch_fs *, struct stripe *, size_t); void bch2_ec_stop_dev(struct bch_fs *, struct bch_dev *); void bch2_ec_flush_new_stripes(struct bch_fs *); +int bch2_ec_mem_alloc(struct bch_fs *, bool); + int bch2_fs_ec_start(struct bch_fs *); void bch2_fs_ec_exit(struct bch_fs *); |