diff options
author | Vivek Haldar <haldar@google.com> | 2011-05-22 21:24:16 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-22 21:24:16 -0400 |
commit | 77f4135f2a219a2127be6cc1208c42e6175b11dd (patch) | |
tree | 8f85549d2354c5a69a5b29197f68a554daad1324 /fs/ext4/ext4.h | |
parent | 93917411be8db5d21abf15c781dfa43c5cc6edf2 (diff) |
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 6ce3c7c8574c..65fe1dc0c750 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1144,6 +1144,9 @@ struct ext4_sb_info { | |||
1144 | unsigned long s_ext_blocks; | 1144 | unsigned long s_ext_blocks; |
1145 | unsigned long s_ext_extents; | 1145 | unsigned long s_ext_extents; |
1146 | #endif | 1146 | #endif |
1147 | /* ext4 extent cache stats */ | ||
1148 | unsigned long extent_cache_hits; | ||
1149 | unsigned long extent_cache_misses; | ||
1147 | 1150 | ||
1148 | /* for buddy allocator */ | 1151 | /* for buddy allocator */ |
1149 | struct ext4_group_info ***s_group_info; | 1152 | struct ext4_group_info ***s_group_info; |