aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorIoannis Angelakopoulos <[email protected]>2022-06-14 15:22:34 -0700
committerDavid Sterba <[email protected]>2022-07-25 17:45:37 +0200
commit140a8ff76547de36291e948df0de294d5f951678 (patch)
tree9a2157c000fa7ea28cbe8525828d9c89716f295b /fs/btrfs/inode.c
parente55958c8a0e4d12a5f1bc9942c52dd793dd2e8dd (diff)
btrfs: sysfs: export commit stats
Export commit stats in file /sys/fs/btrfs/UUID/commit_stats with example output like: commits 123 last_commit_ms 11 max_commit_ms 150 total_commit_ms 2000 The values are in one file so reading them at a single time will give a more consistent view. The stats are internally tracked in nanoseconds so the cumulative values should not suffer from rounding errors. Writing 0 to the file 'commit_stats' will reset max_commit_ms. Initial values are set at first mount of the filesystem. Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Ioannis Angelakopoulos <[email protected]> [ update changelog ] Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions