diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-01 02:46:23 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:13 +0300 |
commit | 97996ddfdb9b0b4df22913d04ce01a069a944430 (patch) | |
tree | b70b6c6d388f1f3bdf4728e7a32e484074c5fde4 /fs/bcachefs/subvolume.h | |
parent | 69294246b7a441a112d1a550ffc8e4e1e45142a4 (diff) | |
download | linux-97996ddfdb9b0b4df22913d04ce01a069a944430.tar.xz |
bcachefs: bch2_subvolume_get()
Factor out a little helper.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/subvolume.h')
-rw-r--r-- | fs/bcachefs/subvolume.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/subvolume.h b/fs/bcachefs/subvolume.h index 0740c7b7f772..ed02b982ff96 100644 --- a/fs/bcachefs/subvolume.h +++ b/fs/bcachefs/subvolume.h @@ -104,6 +104,8 @@ void bch2_subvolume_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c) .val_to_text = bch2_subvolume_to_text, \ } +int bch2_subvolume_get(struct btree_trans *, unsigned, + bool, int, struct bch_subvolume *); int bch2_subvolume_get_snapshot(struct btree_trans *, u32, u32 *); int bch2_subvolume_delete(struct btree_trans *, u32, int); |