Btrfs: read device stats on mount, write modified ones during commit
The device statistics are written into the device tree with each
transaction commit. Only modified statistics are written.
When a filesystem is mounted, the device statistics for each involved
device are read from the device tree and used to initialize the
counters.
Signed-off-by:
Stefan Behrens <sbehrens@giantdisaster.de>
Showing
- fs/btrfs/ctree.h 38 additions, 0 deletionsfs/btrfs/ctree.h
- fs/btrfs/disk-io.c 7 additions, 0 deletionsfs/btrfs/disk-io.c
- fs/btrfs/print-tree.c 3 additions, 0 deletionsfs/btrfs/print-tree.c
- fs/btrfs/transaction.c 4 additions, 0 deletionsfs/btrfs/transaction.c
- fs/btrfs/volumes.c 176 additions, 0 deletionsfs/btrfs/volumes.c
- fs/btrfs/volumes.h 4 additions, 0 deletionsfs/btrfs/volumes.h
Loading
Please register or sign in to comment