diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-02 18:00:04 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:30 -0400 |
commit | c6b6d416126da015e4b6b6a66b4c6fd3eda40f1f (patch) | |
tree | 8b8494698b54a8b65c19f357489c7f7c592a78dd /fs/bcachefs/buckets.h | |
parent | 80c80164a5f131307b9b870f7a366ed45b901b88 (diff) | |
download | linux-stable-c6b6d416126da015e4b6b6a66b4c6fd3eda40f1f.tar.gz linux-stable-c6b6d416126da015e4b6b6a66b4c6fd3eda40f1f.tar.bz2 linux-stable-c6b6d416126da015e4b6b6a66b4c6fd3eda40f1f.zip |
bcachefs: gc mark fn fixes, cleanups
mark_stripe_bucket() was busted; it was using @new unitialized.
Also, clean up all the gc mark functions, and convert them to the same
style.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r-- | fs/bcachefs/buckets.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index 31a56f1f4fca..4675a1f5d189 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -194,9 +194,9 @@ bch2_fs_usage_read_short(struct bch_fs *); void bch2_fs_usage_initialize(struct bch_fs *); -void bch2_mark_metadata_bucket(struct bch_fs *, struct bch_dev *, - size_t, enum bch_data_type, unsigned, - struct gc_pos, unsigned); +int bch2_mark_metadata_bucket(struct bch_fs *, struct bch_dev *, + size_t, enum bch_data_type, unsigned, + struct gc_pos, unsigned); int bch2_mark_alloc(struct btree_trans *, struct bkey_s_c, struct bkey_s_c, unsigned); int bch2_mark_extent(struct btree_trans *, struct bkey_s_c, struct bkey_s_c, unsigned); |