diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-28 10:50:57 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:01 +0300 |
commit | cb1b479dc1c78d1d224e4aa6aba212a7bd3263a4 (patch) | |
tree | 513bb9bfc7c62be3eadc1ec622f420b4497d9d28 /fs/bcachefs/subvolume.h | |
parent | 653693beea8ac93e57fc17afc7353bd158bcd5ff (diff) | |
download | linux-cb1b479dc1c78d1d224e4aa6aba212a7bd3263a4.tar.xz |
bcachefs: Fix quotas + snapshots
Now that we can reliably designate and find the master subvolume out of
a tree of snapshots, we can finally make quotas work with snapshots:
That is - quotas will now _ignore_ snapshot subvolumes, and only be in
effect for the master (non snapshot) subvolume.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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 1ee4562198a6..1a39f713db87 100644 --- a/fs/bcachefs/subvolume.h +++ b/fs/bcachefs/subvolume.h @@ -15,6 +15,8 @@ int bch2_snapshot_tree_invalid(const struct bch_fs *, struct bkey_s_c, .min_val_size = 8, \ }) +int bch2_snapshot_tree_lookup(struct btree_trans *, u32, struct bch_snapshot_tree *); + void bch2_snapshot_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); int bch2_snapshot_invalid(const struct bch_fs *, struct bkey_s_c, unsigned, struct printbuf *); |