ocfs2: Add statistics for the checksum and ecc operations.
authorJoel Becker <joel.becker@oracle.com>
Tue, 6 Jan 2009 22:57:08 +0000 (14:57 -0800)
committerJoel Becker <joel.becker@oracle.com>
Thu, 4 Jun 2009 02:15:36 +0000 (19:15 -0700)
commit73be192b17e43b6dc4f492dab41d70ab5b9d2908
tree9482070421cda81f490036b28033d4f300a58a94
parent15633a220ffe74fc61bc8117e6a89a494011ea3d
ocfs2: Add statistics for the checksum and ecc operations.

It would be nice to know how often we get checksum failures.  Even
better, how many of them we can fix with the single bit ecc.  So, we add
a statistics structure.  The structure can be installed into debugfs
wherever the user wants.

For ocfs2, we'll put it in the superblock-specific debugfs directory and
pass it down from our higher-level functions.  The stats are only
registered with debugfs when the filesystem supports metadata ecc.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/blockcheck.c
fs/ocfs2/blockcheck.h
fs/ocfs2/ocfs2.h
fs/ocfs2/super.c