[Devel] [PATCH RHEL7 COMMIT] ub: get rid of pincount
Konstantin Khorenko
khorenko at virtuozzo.com
Mon May 25 03:28:44 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.5
------>
commit 7bf553f754a24a2ce21971bc5b94daa10597e538
Author: Vladimir Davydov <vdavydov at parallels.com>
Date: Mon May 25 14:28:44 2015 +0400
ub: get rid of pincount
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 732221b..8e384f8 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 546d16f..f17eb9e 100644
--- a/kernel/bc/beancounter.c
+++ b/kernel/bc/beancounter.c
@@ -437,8 +437,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 a35d3f9..075339c 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");
More information about the Devel
mailing list