diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-13 06:26:52 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:28 +0200 |
commit | 880e2275f9f1461c87cd113a8da291861cc01400 (patch) | |
tree | 8e8962da1c1e71c93758ce2b4a8374dbfc9f1bfa /fs/bcachefs/ec.h | |
parent | bcachefs: Revalidate pointer to old bkey val before calling mem triggers (diff) | |
download | linux-880e2275f9f1461c87cd113a8da291861cc01400.tar.xz linux-880e2275f9f1461c87cd113a8da291861cc01400.zip |
bcachefs: Move trigger fns to bkey_ops
This replaces the switch statements in bch2_mark_key(),
bch2_trans_mark_key() with new bkey methods - prep work for the next
patch, which fixes BTREE_TRIGGER_WANTS_OLD_AND_NEW.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/ec.h')
-rw-r--r-- | fs/bcachefs/ec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/ec.h b/fs/bcachefs/ec.h index 78d468c7680a..9d508a2f3bbc 100644 --- a/fs/bcachefs/ec.h +++ b/fs/bcachefs/ec.h @@ -14,6 +14,8 @@ void bch2_stripe_to_text(struct printbuf *, struct bch_fs *, .key_invalid = bch2_stripe_invalid, \ .val_to_text = bch2_stripe_to_text, \ .swab = bch2_ptr_swab, \ + .trans_trigger = bch2_trans_mark_stripe, \ + .atomic_trigger = bch2_mark_stripe, \ } static inline unsigned stripe_csums_per_device(const struct bch_stripe *s) |