f2fs: adjust showing of extent cache stat
authorChao Yu <chao2.yu@samsung.com>
Wed, 19 Aug 2015 11:13:25 +0000 (19:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 22 Aug 2015 05:45:16 +0000 (22:45 -0700)
commit029e13cc3221be4bc46909225142277fee52c37e
tree6b649cc7932090fbb00ddab9a5b5eb6b8b40c843
parent91c481fff92c705dd382f1f53c01e6b6b88507d0
f2fs: adjust showing of extent cache stat

This patch alters to replace total hit stat with rbtree hit stat,
and then adjust showing of extent cache stat:

Hit Count:
L1-1: for largest node hit count;
L1-2: for last cached node hit count;
L2: for extent node hit after lookuping in rbtree.

Hit Ratio:
ratio (hit count / total lookup count)

Inner Struct Count:
tree count, node count.

Before:
Extent Hit Ratio: 0 / 2

Extent Tree Count: 3

Extent Node Count: 2

Patched:
Exten Cacache:
  - Hit Count: L1-1:4871 L1-2:2074 L2:208
  - Hit Ratio: 1% (7153 / 550751)
  - Inner Struct Count: tree: 26560, node: 11824

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/debug.c
fs/f2fs/extent_cache.c
fs/f2fs/f2fs.h