From: Oleg Drokin Date: Mon, 14 Sep 2015 03:43:14 +0000 (-0400) Subject: LU-7147 obdclass: remove unused lu_site_stats_print X-Git-Tag: 2.7.65~25 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3450f960afa5f20b154c2ece27cd6010c12ecae9;hp=4ec34a65016ec24f1bbc14921ee692c493fad2af;p=fs%2Flustre-release.git 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 --- 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. */