• Thomas Bertschinger's avatar
    bcachefs: create debugfs dir for each btree · e60aa472
    Thomas Bertschinger authored
    This creates a subdirectory for each individual btree under the btrees/
    debugfs directory.
    
    Directory structure, before:
    
    /sys/kernel/debug/bcachefs/$FS_ID/btrees/
    ├── alloc
    ├── alloc-bfloat-failed
    ├── alloc-formats
    ├── backpointers
    ├── backpointers-bfloat-failed
    ├── backpointers-formats
    ...
    
    Directory structure, after:
    
    /sys/kernel/debug/bcachefs/$FS_ID/btrees/
    ├── alloc
    │   ├── bfloat-failed
    │   ├── formats
    │   └── keys
    ├── backpointers
    │   ├── bfloat-failed
    │   ├── formats
    │   └── keys
    ...
    Signed-off-by: default avatarThomas Bertschinger <tahbertschinger@gmail.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    e60aa472
debug.c 20.9 KB