diff options
author | Boris Burkov <boris@bur.io> | 2023-02-15 12:59:49 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-03-01 19:27:20 +0100 |
commit | fcd9531b305288dc2848d38567d466af4ee147b2 (patch) | |
tree | 7c4a644d6994df5e44d000f5c53eb03f30bd567d /fs/btrfs/fs.c | |
parent | 964a54e5e1a0d70cd80bd5a0885a1938463625b1 (diff) |
btrfs: sysfs: add size class stats
Make it possible to see the distribution of size classes for block
groups. Helpful for testing and debugging the allocator w.r.t. to size
classes.
The new stats can be found at the path:
/sys/fs/btrfs/<FSID>/allocation/<bg-type>/size_class
but they will only be non-zero for bg-type = data.
Signed-off-by: Boris Burkov <boris@bur.io>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/fs.c')
0 files changed, 0 insertions, 0 deletions