bcachefs: Fix quotas + snapshots
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Apr 2023 07:50:57 +0000 (03:50 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:01 +0000 (17:10 -0400)
commitcb1b479dc1c78d1d224e4aa6aba212a7bd3263a4
tree513bb9bfc7c62be3eadc1ec622f420b4497d9d28
parent653693beea8ac93e57fc17afc7353bd158bcd5ff
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>
fs/bcachefs/fs-io.c
fs/bcachefs/quota.c
fs/bcachefs/subvolume.c
fs/bcachefs/subvolume.h