]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: read device stats on mount, write modified ones during commit
authorStefan Behrens <sbehrens@giantdisaster.de>
Fri, 25 May 2012 14:06:10 +0000 (16:06 +0200)
committerJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 14:23:41 +0000 (10:23 -0400)
commit7a5e8a76ad3a319e6d2ead17c3117de20b5df405
tree0c6dab9e8610eb9b4ccd9a6453caa1588583b1b8
parentecedeb8c712fec615bc10be5c54a95864f3f3afd
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>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/print-tree.c
fs/btrfs/transaction.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h