ext4: count hits/misses of extent cache and expose in sysfs
authorVivek Haldar <haldar@google.com>
Mon, 23 May 2011 01:24:16 +0000 (21:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 23 May 2011 01:24:16 +0000 (21:24 -0400)
commit77f4135f2a219a2127be6cc1208c42e6175b11dd
tree8f85549d2354c5a69a5b29197f68a554daad1324
parent93917411be8db5d21abf15c781dfa43c5cc6edf2
ext4: count hits/misses of extent cache and expose in sysfs

The number of hits and misses for each filesystem is exposed in
/sys/fs/ext4/<dev>/extent_cache_{hits, misses}.

Tested: fsstress, manual checks.
Signed-off-by: Vivek Haldar <haldar@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/super.c