cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 2/2] memcg: change mem_control_xxx to mem_cgroup_xxx
@ 2012-06-25 11:15 Wanpeng Li
       [not found] ` <1340622959-13136-1-git-send-email-liwp.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Wanpeng Li @ 2012-06-25 11:15 UTC (permalink / raw)
  To: Michal Hocko
  Cc: Johannes Weiner, KAMEZAWA Hiroyuki, Balbir Singh, Andrew Morton,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	cgroups-u79uwXL29TY76Z2rM5mHXA, Wanpeng Li

From: Wanpeng Li <liwp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>

Unify memcg functions to mem_cgroup_xxx.

Signed-off-by: Wanpeng Li <liwp.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Acked-by: Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
Acked-by: Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
---
 mm/memcontrol.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ccda728..2e81328 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3999,7 +3999,7 @@ static int mem_cgroup_move_charge_write(struct cgroup *cgrp,
 #endif
 
 #ifdef CONFIG_NUMA
-static int mem_control_numa_stat_show(struct cgroup *cont, struct cftype *cft,
+static int mem_cgroup_numa_stat_show(struct cgroup *cont, struct cftype *cft,
 				      struct seq_file *m)
 {
 	int nid;
@@ -4058,7 +4058,7 @@ static inline void mem_cgroup_lru_names_not_uptodate(void)
 	BUILD_BUG_ON(ARRAY_SIZE(mem_cgroup_lru_names) != NR_LRU_LISTS);
 }
 
-static int mem_control_stat_show(struct cgroup *cont, struct cftype *cft,
+static int mem_cgroup_stat_show(struct cgroup *cont, struct cftype *cft,
 				 struct seq_file *m)
 {
 	struct mem_cgroup *memcg = mem_cgroup_from_cont(cont);
@@ -4572,7 +4572,7 @@ static struct cftype mem_cgroup_files[] = {
 	},
 	{
 		.name = "stat",
-		.read_seq_string = mem_control_stat_show,
+		.read_seq_string = mem_cgroup_stat_show,
 	},
 	{
 		.name = "force_empty",
@@ -4604,7 +4604,7 @@ static struct cftype mem_cgroup_files[] = {
 #ifdef CONFIG_NUMA
 	{
 		.name = "numa_stat",
-		.read_seq_string = mem_control_numa_stat_show,
+		.read_seq_string = mem_cgroup_numa_stat_show,
 	},
 #endif
 #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v4 2/2] memcg: change mem_control_xxx to mem_cgroup_xxx
       [not found] ` <1340622959-13136-1-git-send-email-liwp.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2012-06-26 19:54   ` Andrew Morton
  2012-06-27  0:12     ` Wanpeng Li
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2012-06-26 19:54 UTC (permalink / raw)
  To: Wanpeng Li
  Cc: Michal Hocko, Johannes Weiner, KAMEZAWA Hiroyuki, Balbir Singh,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	cgroups-u79uwXL29TY76Z2rM5mHXA

On Mon, 25 Jun 2012 19:15:59 +0800
Wanpeng Li <liwp.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> From: Wanpeng Li <liwp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> 
> Unify memcg functions to mem_cgroup_xxx.

How about we unify memcg functions to memcg_xxx?

> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -3999,7 +3999,7 @@ static int mem_cgroup_move_charge_write(struct cgroup *cgrp,
>  #endif
>  
>  #ifdef CONFIG_NUMA
> -static int mem_control_numa_stat_show(struct cgroup *cont, struct cftype *cft,
> +static int mem_cgroup_numa_stat_show(struct cgroup *cont, struct cftype *cft,
>  				      struct seq_file *m)

memcg_numa_stat_show(), etc.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v4 2/2] memcg: change mem_control_xxx to mem_cgroup_xxx
  2012-06-26 19:54   ` Andrew Morton
@ 2012-06-27  0:12     ` Wanpeng Li
  0 siblings, 0 replies; 3+ messages in thread
From: Wanpeng Li @ 2012-06-27  0:12 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Michal Hocko, Johannes Weiner, KAMEZAWA Hiroyuki, Balbir Singh,
	linux-kernel, cgroups, Wanpeng Li

On Tue, Jun 26, 2012 at 12:54:37PM -0700, Andrew Morton wrote:
>On Mon, 25 Jun 2012 19:15:59 +0800
>Wanpeng Li <liwp.linux@gmail.com> wrote:
>
>> From: Wanpeng Li <liwp@linux.vnet.ibm.com>
>> 
>> Unify memcg functions to mem_cgroup_xxx.
>
>How about we unify memcg functions to memcg_xxx?

OK, I will resend the patch. Thank you!

Regards,
Wanpeng Li 

>
>> --- a/mm/memcontrol.c
>> +++ b/mm/memcontrol.c
>> @@ -3999,7 +3999,7 @@ static int mem_cgroup_move_charge_write(struct cgroup *cgrp,
>>  #endif
>>  
>>  #ifdef CONFIG_NUMA
>> -static int mem_control_numa_stat_show(struct cgroup *cont, struct cftype *cft,
>> +static int mem_cgroup_numa_stat_show(struct cgroup *cont, struct cftype *cft,
>>  				      struct seq_file *m)
>
>memcg_numa_stat_show(), etc.
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-27  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25 11:15 [PATCH v4 2/2] memcg: change mem_control_xxx to mem_cgroup_xxx Wanpeng Li
     [not found] ` <1340622959-13136-1-git-send-email-liwp.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-06-26 19:54   ` Andrew Morton
2012-06-27  0:12     ` Wanpeng Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).