diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-28 01:46:04 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-05 23:24:20 -0500 |
commit | e4eb3e5ae46b654ab50c62cce96cf04039bab2e3 (patch) | |
tree | 5e2f8ff57b525e38b15af29565ba867c49f46603 /fs/bcachefs/ec.h | |
parent | f4f78779bb2ad1d1a56036c45f8e824d9700eeba (diff) |
bcachefs: unify stripe trigger
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec.h')
-rw-r--r-- | fs/bcachefs/ec.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/bcachefs/ec.h b/fs/bcachefs/ec.h index 3f7b2179d95e..94efb8d9beb9 100644 --- a/fs/bcachefs/ec.h +++ b/fs/bcachefs/ec.h @@ -12,16 +12,15 @@ int bch2_stripe_invalid(struct bch_fs *, struct bkey_s_c, enum bkey_invalid_flags, struct printbuf *); void bch2_stripe_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); -int bch2_trans_mark_stripe(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned); -int bch2_mark_stripe(struct btree_trans *, enum btree_id, unsigned, - struct bkey_s_c, struct bkey_s, unsigned); +int bch2_trigger_stripe(struct btree_trans *, enum btree_id, unsigned, + struct bkey_s_c, struct bkey_s, unsigned); #define bch2_bkey_ops_stripe ((struct bkey_ops) { \ .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, \ + .trans_trigger = bch2_trigger_stripe, \ + .atomic_trigger = bch2_trigger_stripe, \ .min_val_size = 8, \ }) |