diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-28 08:05:54 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-06 07:24:19 +0300 |
commit | 08bc95901037bce2fa31a7bb4b559f55a31ae88d (patch) | |
tree | 032ff9c06d7f1e770e669f4a547e66f9c076a3f4 /fs/bcachefs/inode.h | |
parent | 282e7c37ebf5d76c4f38d6656354901919a2592f (diff) | |
download | linux-08bc95901037bce2fa31a7bb4b559f55a31ae88d.tar.xz |
bcachefs: unify inode trigger
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r-- | fs/bcachefs/inode.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h index f1838dccfb3c..fed552e0140a 100644 --- a/fs/bcachefs/inode.h +++ b/fs/bcachefs/inode.h @@ -17,32 +17,30 @@ int bch2_inode_v3_invalid(struct bch_fs *, struct bkey_s_c, enum bkey_invalid_flags, struct printbuf *); void bch2_inode_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); -int bch2_trans_mark_inode(struct btree_trans *, enum btree_id, unsigned, +int bch2_trigger_inode(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned); -int bch2_mark_inode(struct btree_trans *, enum btree_id, unsigned, - struct bkey_s_c, struct bkey_s, unsigned); #define bch2_bkey_ops_inode ((struct bkey_ops) { \ .key_invalid = bch2_inode_invalid, \ .val_to_text = bch2_inode_to_text, \ - .trans_trigger = bch2_trans_mark_inode, \ - .atomic_trigger = bch2_mark_inode, \ + .trans_trigger = bch2_trigger_inode, \ + .atomic_trigger = bch2_trigger_inode, \ .min_val_size = 16, \ }) #define bch2_bkey_ops_inode_v2 ((struct bkey_ops) { \ .key_invalid = bch2_inode_v2_invalid, \ .val_to_text = bch2_inode_to_text, \ - .trans_trigger = bch2_trans_mark_inode, \ - .atomic_trigger = bch2_mark_inode, \ + .trans_trigger = bch2_trigger_inode, \ + .atomic_trigger = bch2_trigger_inode, \ .min_val_size = 32, \ }) #define bch2_bkey_ops_inode_v3 ((struct bkey_ops) { \ .key_invalid = bch2_inode_v3_invalid, \ .val_to_text = bch2_inode_to_text, \ - .trans_trigger = bch2_trans_mark_inode, \ - .atomic_trigger = bch2_mark_inode, \ + .trans_trigger = bch2_trigger_inode, \ + .atomic_trigger = bch2_trigger_inode, \ .min_val_size = 48, \ }) |