-
- Downloads
bcachefs: bcachefs_metadata_version_disk_accounting_inum
This adds another disk accounting counter to track usage per inode
number (any snapshot ID).
This will be used for a couple things:
- It'll give us a way to tell the user how much space a given file ista
consuming in all snapshots; i.e. how much extra space it's consuming
due to snapshot versioning.
- It counts number of extents and total size of extents (both in btree
keyspace sectors and actual disk usage), meaning it gives us average
extent size: that is, it'll let us cheaply find fragmented files that
should be defragmented.
Signed-off-by:
Kent Overstreet <kent.overstreet@linux.dev>
Showing
- fs/bcachefs/bcachefs_format.h 2 additions, 1 deletionfs/bcachefs/bcachefs_format.h
- fs/bcachefs/buckets.c 14 additions, 0 deletionsfs/bcachefs/buckets.c
- fs/bcachefs/disk_accounting.c 3 additions, 0 deletionsfs/bcachefs/disk_accounting.c
- fs/bcachefs/disk_accounting.h 3 additions, 0 deletionsfs/bcachefs/disk_accounting.h
- fs/bcachefs/disk_accounting_format.h 7 additions, 1 deletionfs/bcachefs/disk_accounting_format.h
- fs/bcachefs/sb-downgrade.c 4 additions, 1 deletionfs/bcachefs/sb-downgrade.c
Loading
Please register or sign in to comment