Lines Matching refs:stats

232 static void ocfs2_blockcheck_debug_remove(struct ocfs2_blockcheck_stats *stats)  in ocfs2_blockcheck_debug_remove()  argument
234 if (stats) { in ocfs2_blockcheck_debug_remove()
235 debugfs_remove_recursive(stats->b_debug_dir); in ocfs2_blockcheck_debug_remove()
236 stats->b_debug_dir = NULL; in ocfs2_blockcheck_debug_remove()
240 static void ocfs2_blockcheck_debug_install(struct ocfs2_blockcheck_stats *stats, in ocfs2_blockcheck_debug_install() argument
246 stats->b_debug_dir = dir; in ocfs2_blockcheck_debug_install()
249 &stats->b_check_count, &blockcheck_fops); in ocfs2_blockcheck_debug_install()
252 &stats->b_failure_count, &blockcheck_fops); in ocfs2_blockcheck_debug_install()
255 &stats->b_recover_count, &blockcheck_fops); in ocfs2_blockcheck_debug_install()
259 static inline void ocfs2_blockcheck_debug_install(struct ocfs2_blockcheck_stats *stats, in ocfs2_blockcheck_debug_install() argument
264 static inline void ocfs2_blockcheck_debug_remove(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_debug_remove() argument
270 void ocfs2_blockcheck_stats_debugfs_install(struct ocfs2_blockcheck_stats *stats, in ocfs2_blockcheck_stats_debugfs_install() argument
273 ocfs2_blockcheck_debug_install(stats, parent); in ocfs2_blockcheck_stats_debugfs_install()
276 void ocfs2_blockcheck_stats_debugfs_remove(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_stats_debugfs_remove() argument
278 ocfs2_blockcheck_debug_remove(stats); in ocfs2_blockcheck_stats_debugfs_remove()
281 static void ocfs2_blockcheck_inc_check(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_inc_check() argument
285 if (!stats) in ocfs2_blockcheck_inc_check()
288 spin_lock(&stats->b_lock); in ocfs2_blockcheck_inc_check()
289 stats->b_check_count++; in ocfs2_blockcheck_inc_check()
290 new_count = stats->b_check_count; in ocfs2_blockcheck_inc_check()
291 spin_unlock(&stats->b_lock); in ocfs2_blockcheck_inc_check()
297 static void ocfs2_blockcheck_inc_failure(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_inc_failure() argument
301 if (!stats) in ocfs2_blockcheck_inc_failure()
304 spin_lock(&stats->b_lock); in ocfs2_blockcheck_inc_failure()
305 stats->b_failure_count++; in ocfs2_blockcheck_inc_failure()
306 new_count = stats->b_failure_count; in ocfs2_blockcheck_inc_failure()
307 spin_unlock(&stats->b_lock); in ocfs2_blockcheck_inc_failure()
313 static void ocfs2_blockcheck_inc_recover(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_inc_recover() argument
317 if (!stats) in ocfs2_blockcheck_inc_recover()
320 spin_lock(&stats->b_lock); in ocfs2_blockcheck_inc_recover()
321 stats->b_recover_count++; in ocfs2_blockcheck_inc_recover()
322 new_count = stats->b_recover_count; in ocfs2_blockcheck_inc_recover()
323 spin_unlock(&stats->b_lock); in ocfs2_blockcheck_inc_recover()
380 struct ocfs2_blockcheck_stats *stats) in ocfs2_block_check_validate() argument
387 ocfs2_blockcheck_inc_check(stats); in ocfs2_block_check_validate()
399 ocfs2_blockcheck_inc_failure(stats); in ocfs2_block_check_validate()
411 ocfs2_blockcheck_inc_recover(stats); in ocfs2_block_check_validate()
487 struct ocfs2_blockcheck_stats *stats) in ocfs2_block_check_validate_bhs() argument
499 ocfs2_blockcheck_inc_check(stats); in ocfs2_block_check_validate_bhs()
512 ocfs2_blockcheck_inc_failure(stats); in ocfs2_block_check_validate_bhs()
542 ocfs2_blockcheck_inc_recover(stats); in ocfs2_block_check_validate_bhs()