diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-30 00:43:18 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:15 +0200 |
commit | 904823de497fa6637db8bc7c3b017f121b72bdf3 (patch) | |
tree | ade8271b94cd2cabe595a9e8f5ae656f3c74e693 /fs/bcachefs/subvolume.h | |
parent | bcachefs: Assorted ec fixes (diff) | |
download | linux-904823de497fa6637db8bc7c3b017f121b72bdf3.tar.xz linux-904823de497fa6637db8bc7c3b017f121b72bdf3.zip |
bcachefs: Convert bch2_mark_key() to take a btree_trans *
This helps to unify the interface between bch2_mark_key() and
bch2_trans_mark_key() - and it also gives access to the journal
reservation and journal seq in the mark_key path.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/subvolume.h')
-rw-r--r-- | fs/bcachefs/subvolume.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/subvolume.h b/fs/bcachefs/subvolume.h index b5067dc68fc7..dde755b45392 100644 --- a/fs/bcachefs/subvolume.h +++ b/fs/bcachefs/subvolume.h @@ -12,8 +12,8 @@ const char *bch2_snapshot_invalid(const struct bch_fs *, struct bkey_s_c); .val_to_text = bch2_snapshot_to_text, \ } -int bch2_mark_snapshot(struct bch_fs *, struct bkey_s_c, - struct bkey_s_c, u64, unsigned); +int bch2_mark_snapshot(struct btree_trans *, struct bkey_s_c, + struct bkey_s_c, unsigned); static inline struct snapshot_t *snapshot_t(struct bch_fs *c, u32 id) { |