From 3450f960afa5f20b154c2ece27cd6010c12ecae9 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Sun, 13 Sep 2015 23:43:14 -0400 Subject: [PATCH] LU-7147 obdclass: remove unused lu_site_stats_print This should have been removed when lu_site_stats_seq_print was added. Change-Id: I6003153f6da26b04fd98a3718f44a46b43c67a65 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/16391 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Emoly Liu --- lustre/include/lu_object.h | 1 - lustre/obdclass/lu_object.c | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/lustre/include/lu_object.h b/lustre/include/lu_object.h index 69e8abb..3a84844 100644 --- a/lustre/include/lu_object.h +++ b/lustre/include/lu_object.h @@ -1289,7 +1289,6 @@ int lu_env_refill_by_tags(struct lu_env *env, __u32 ctags, __u32 stags); * ll_rd_*()-style functions. */ int lu_site_stats_seq_print(const struct lu_site *s, struct seq_file *m); -int lu_site_stats_print(const struct lu_site *s, char *page, int count); /** * Common name structure to be passed around for various name related methods. diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index 0948da4..c478d51 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -2239,28 +2239,6 @@ int lu_site_stats_seq_print(const struct lu_site *s, struct seq_file *m) } EXPORT_SYMBOL(lu_site_stats_seq_print); -int lu_site_stats_print(const struct lu_site *s, char *page, int count) -{ - lu_site_stats_t stats; - - memset(&stats, 0, sizeof(stats)); - lu_site_stats_get(s->ls_obj_hash, &stats, 1); - - return snprintf(page, count, "%d/%d %d/%d %d %d %d %d %d %d %d %d\n", - stats.lss_busy, - stats.lss_total, - stats.lss_populated, - CFS_HASH_NHLIST(s->ls_obj_hash), - stats.lss_max_search, - ls_stats_read(s->ls_stats, LU_SS_CREATED), - ls_stats_read(s->ls_stats, LU_SS_CACHE_HIT), - ls_stats_read(s->ls_stats, LU_SS_CACHE_MISS), - ls_stats_read(s->ls_stats, LU_SS_CACHE_RACE), - ls_stats_read(s->ls_stats, LU_SS_CACHE_DEATH_RACE), - ls_stats_read(s->ls_stats, LU_SS_LRU_PURGED), - ls_stats_read(s->ls_stats, LU_SS_LRU_LEN)); -} - /** * Helper function to initialize a number of kmem slab caches at once. */ -- 1.8.3.1