diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-15 20:58:00 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:20 +0200 |
commit | c6dd04f8f5644d92361bb2d6e47fa9b4d5af6d79 (patch) | |
tree | 1064fd24845685f95801d72c8211e978dcd94a64 /fs/bcachefs/buckets.h | |
parent | bcachefs: Deduplicate keys in the journal before replay (diff) | |
download | linux-c6dd04f8f5644d92361bb2d6e47fa9b4d5af6d79.tar.xz linux-c6dd04f8f5644d92361bb2d6e47fa9b4d5af6d79.zip |
bcachefs: Mark overwrites from journal replay in initial gc
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r-- | fs/bcachefs/buckets.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index 095015f17f76..90fffee1c289 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -254,6 +254,9 @@ int bch2_mark_key(struct bch_fs *, struct bkey_s_c, int bch2_fs_usage_apply(struct bch_fs *, struct bch_fs_usage *, struct disk_reservation *); +bool bch2_mark_overwrite(struct btree_trans *, struct btree_iter *, + struct bkey_s_c, struct bkey_i *, + struct bch_fs_usage *, unsigned); void bch2_mark_update(struct btree_trans *, struct btree_insert_entry *, struct bch_fs_usage *, unsigned); void bch2_trans_fs_usage_apply(struct btree_trans *, struct bch_fs_usage *); |