bcachefs: Redo filesystem usage ioctls
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 16 Dec 2019 22:53:59 +0000 (17:53 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:33 +0000 (17:08 -0400)
commit22502ac23a2eaa3714b77d4a9242df352a9cd0c0
treebb4b1a751942623c49d507ef00d6ab28667d1695
parent184b1dc1a6bf4bc53a1c71bf14120498aad67ff5
bcachefs: Redo filesystem usage ioctls

When disk space accounting was changed to be tracked by replicas entry,
the ioctl interface was never update: this patch finally does that.

Aditionally, the BCH_IOCTL_USAGE ioctl is now broken out into separate
ioctls for filesystem and device usage.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bcachefs_ioctl.h
fs/bcachefs/chardev.c
fs/bcachefs/replicas.h