mbox series

[0/2] btrfs: block group size class load fixes

Message ID cover.1674679476.git.boris@bur.io (mailing list archive)
Headers show
Series btrfs: block group size class load fixes | expand

Message

Boris Burkov Jan. 25, 2023, 8:50 p.m. UTC
The original size class loading logic was totally broken.

Patch 1 fixes it.
Patch 2 adds sysfs visibility to size classes so that we don't mess up
this badly in the future (and can test it in xfstests now).

Boris Burkov (2):
  btrfs: fix size class loading logic
  btrfs: add size class stats to sysfs

 fs/btrfs/block-group.c | 56 ++++++++++++++++++++++++++++--------------
 fs/btrfs/sysfs.c       | 39 +++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 19 deletions(-)

Comments

David Sterba Jan. 25, 2023, 10:05 p.m. UTC | #1
On Wed, Jan 25, 2023 at 12:50:31PM -0800, Boris Burkov wrote:
> The original size class loading logic was totally broken.
> 
> Patch 1 fixes it.
> Patch 2 adds sysfs visibility to size classes so that we don't mess up
> this badly in the future (and can test it in xfstests now).
> 
> Boris Burkov (2):
>   btrfs: fix size class loading logic
>   btrfs: add size class stats to sysfs

There's still time to replace the orignial patches, you can send me
incremental diffs or resend the whole series.