diff options
Diffstat (limited to 'fs/ext4/extents_status.h')
-rw-r--r-- | fs/ext4/extents_status.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/ext4/extents_status.h b/fs/ext4/extents_status.h index f1b62a419920..efd5f970b501 100644 --- a/fs/ext4/extents_status.h +++ b/fs/ext4/extents_status.h | |||
@@ -64,6 +64,17 @@ struct ext4_es_tree { | |||
64 | struct extent_status *cache_es; /* recently accessed extent */ | 64 | struct extent_status *cache_es; /* recently accessed extent */ |
65 | }; | 65 | }; |
66 | 66 | ||
67 | struct ext4_es_stats { | ||
68 | unsigned long es_stats_last_sorted; | ||
69 | unsigned long es_stats_shrunk; | ||
70 | unsigned long es_stats_cache_hits; | ||
71 | unsigned long es_stats_cache_misses; | ||
72 | u64 es_stats_scan_time; | ||
73 | u64 es_stats_max_scan_time; | ||
74 | struct percpu_counter es_stats_all_cnt; | ||
75 | struct percpu_counter es_stats_lru_cnt; | ||
76 | }; | ||
77 | |||
67 | extern int __init ext4_init_es(void); | 78 | extern int __init ext4_init_es(void); |
68 | extern void ext4_exit_es(void); | 79 | extern void ext4_exit_es(void); |
69 | extern void ext4_es_init_tree(struct ext4_es_tree *tree); | 80 | extern void ext4_es_init_tree(struct ext4_es_tree *tree); |
@@ -138,7 +149,7 @@ static inline void ext4_es_store_pblock_status(struct extent_status *es, | |||
138 | (pb & ~ES_MASK)); | 149 | (pb & ~ES_MASK)); |
139 | } | 150 | } |
140 | 151 | ||
141 | extern void ext4_es_register_shrinker(struct ext4_sb_info *sbi); | 152 | extern int ext4_es_register_shrinker(struct ext4_sb_info *sbi); |
142 | extern void ext4_es_unregister_shrinker(struct ext4_sb_info *sbi); | 153 | extern void ext4_es_unregister_shrinker(struct ext4_sb_info *sbi); |
143 | extern void ext4_es_lru_add(struct inode *inode); | 154 | extern void ext4_es_lru_add(struct inode *inode); |
144 | extern void ext4_es_lru_del(struct inode *inode); | 155 | extern void ext4_es_lru_del(struct inode *inode); |