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) | |
download | linux-stable-77f4135f2a219a2127be6cc1208c42e6175b11dd.tar.gz linux-stable-77f4135f2a219a2127be6cc1208c42e6175b11dd.tar.bz2 linux-stable-77f4135f2a219a2127be6cc1208c42e6175b11dd.zip |
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 { unsigned long s_ext_blocks; unsigned long s_ext_extents; #endif + /* ext4 extent cache stats */ + unsigned long extent_cache_hits; + unsigned long extent_cache_misses; /* for buddy allocator */ struct ext4_group_info ***s_group_info; |