[Devel] [PATCH rh7 10/11] ub: get rid of pincount

Vladimir Davydov vdavydov at parallels.com
Wed May 20 05:10:03 PDT 2015


It is never used.

Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 include/bc/beancounter.h |    2 --
 kernel/bc/beancounter.c  |    2 --
 kernel/bc/proc.c         |    1 -
 3 files changed, 5 deletions(-)

diff --git a/include/bc/beancounter.h b/include/bc/beancounter.h
index 732221b49223..8e384f8ada6d 100644
--- a/include/bc/beancounter.h
+++ b/include/bc/beancounter.h
@@ -105,8 +105,6 @@ struct ub_percpu_struct {
 
 	/* percpu resource precharge */
 	int	precharge[UB_RESOURCES];
-
-	int pincount;
 };
 
 struct user_beancounter {
diff --git a/kernel/bc/beancounter.c b/kernel/bc/beancounter.c
index a1ca6f86198b..acb59c0f07f6 100644
--- a/kernel/bc/beancounter.c
+++ b/kernel/bc/beancounter.c
@@ -407,8 +407,6 @@ static inline int bc_verify_held(struct user_beancounter *ub)
 			__ub_stat_get(ub, writeback_pages));
 	clean &= verify_res(ub, "tmpfs_respages", ub->ub_tmpfs_respages);
 
-	clean &= verify_res(ub, "pincount", __ub_percpu_sum(ub, pincount));
-
 	ub_debug_trace(!clean, 5, 60*HZ);
 
 	return clean;
diff --git a/kernel/bc/proc.c b/kernel/bc/proc.c
index a35d3f92e7bf..075339c2f9da 100644
--- a/kernel/bc/proc.c
+++ b/kernel/bc/proc.c
@@ -102,7 +102,6 @@ static int bc_debug_show(struct seq_file *f, void *v)
 
 	seq_printf(f, "bc: %p\n", ub);
 	seq_printf(f, "sizeof: %lu\n", sizeof(struct user_beancounter));
-	seq_printf(f, "pincount: %d\n", __ub_percpu_sum(ub, pincount));
 
 	seq_printf(f, "oom_score_adj: %s\n", (ub->ub_flags &
 				UB_OOM_MANUAL_SCORE_ADJ) ? "manual" : "auto");
-- 
1.7.10.4




More information about the Devel mailing list