btrfs: add helper for recording simple quota deltas
authorBoris Burkov <boris@bur.io>
Tue, 28 Mar 2023 20:43:47 +0000 (13:43 -0700)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:11 +0000 (16:44 +0200)
commit1e0e9d5771c33d2c17a7f2a0e2a419aca91bb1a0
tree08da40e215e15ce7801f1a59b433263b00dfc579
parent6ed05643ddb166c0fddabac8ee092659006214a9
btrfs: add helper for recording simple quota deltas

Rather than re-computing shared/exclusive ownership based on backrefs
and walking roots for implicit backrefs, simple quotas does an increment
when creating an extent and a decrement when deleting it. Add the API
for the extent item code to use to track those events.

Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h