diff options
| author | Shenghui Wang <[email protected]> | 2018-10-08 20:41:07 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-10-08 08:19:37 -0600 |
| commit | 7a55948d38eb9b274cbbdd56dc1dd4b96ebfbe04 (patch) | |
| tree | 4e1198155861a7803999844f31059604214c3b90 /tools/perf/scripts/python | |
| parent | 6d8623a71135d8e2d397c1534f35e04dcf867749 (diff) | |
bcache: account size of buckets used in uuid write to ca->meta_sectors_written
UUIDs are considered as metadata. __uuid_write should add the number
of buckets (in sectors) written to disk to ca->meta_sectors_written.
Currently only 1 bucket is used in uuid write.
Steps to test:
1) create a fresh backing device and a fresh cache device separately.
The backing device didn't attach to any cache set.
2) cd /sys/block/<cache device>/bcache
cat metadata_written // record the output value
cat bucket_size
3) attach the backing device to cache set
4) cat metadata_written
The output value is almost the same as the value in step 2
before the change.
After the change, the value is bigger about 1 bucket size.
Signed-off-by: Shenghui Wang <[email protected]>
Reviewed-by: Tang Junhui <[email protected]>
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions