* [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit
@ 2009-12-07 2:37 Bob Liu
2009-12-07 4:13 ` Daisuke Nishimura
2009-12-07 8:05 ` Balbir Singh
0 siblings, 2 replies; 3+ messages in thread
From: Bob Liu @ 2009-12-07 2:37 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, balbir, nishimura
Variable progress isn't used in funtion mem_cgroup_resize_limit anymore.
Remove it.
Signed-off-by: Bob Liu <lliubbo@gmail.com>
---
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 984cf27..9d4776e 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2100,7 +2100,6 @@ static int mem_cgroup_resize_limit(struct
mem_cgroup *memcg,
unsigned long long val)
{
int retry_count;
- int progress;
u64 memswlimit;
int ret = 0;
int children = mem_cgroup_count_children(memcg);
@@ -2144,7 +2143,7 @@ static int mem_cgroup_resize_limit(struct
mem_cgroup *memcg,
if (!ret)
break;
- progress = mem_cgroup_hierarchical_reclaim(memcg, NULL,
+ mem_cgroup_hierarchical_reclaim(memcg, NULL,
GFP_KERNEL,
MEM_CGROUP_RECLAIM_SHRINK);
curusage = res_counter_read_u64(&memcg->res, RES_USAGE);
--
1.6.0.6
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit
2009-12-07 2:37 [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit Bob Liu
@ 2009-12-07 4:13 ` Daisuke Nishimura
2009-12-07 8:05 ` Balbir Singh
1 sibling, 0 replies; 3+ messages in thread
From: Daisuke Nishimura @ 2009-12-07 4:13 UTC (permalink / raw)
To: Bob Liu; +Cc: akpm, linux-mm, balbir, KAMEZAWA Hiroyuki, Daisuke Nishimura
(Added Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>)
On Mon, 7 Dec 2009 10:37:24 +0800, Bob Liu <lliubbo@gmail.com> wrote:
> Variable progress isn't used in funtion mem_cgroup_resize_limit anymore.
> Remove it.
>
Indeed.
One minor nitpick.
> Signed-off-by: Bob Liu <lliubbo@gmail.com>
> ---
> diff --git a/mm/memcontrol.c b/mm/memcontrol.c
> index 984cf27..9d4776e 100644
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -2100,7 +2100,6 @@ static int mem_cgroup_resize_limit(struct
> mem_cgroup *memcg,
> unsigned long long val)
> {
> int retry_count;
> - int progress;
> u64 memswlimit;
> int ret = 0;
> int children = mem_cgroup_count_children(memcg);
> @@ -2144,7 +2143,7 @@ static int mem_cgroup_resize_limit(struct
> mem_cgroup *memcg,
> if (!ret)
> break;
>
> - progress = mem_cgroup_hierarchical_reclaim(memcg, NULL,
> + mem_cgroup_hierarchical_reclaim(memcg, NULL,
> GFP_KERNEL,
> MEM_CGROUP_RECLAIM_SHRINK);
Could you merge "GFP_KERNEL," to the previous line ?
It can reduces 1 line as a result.
Thanks,
Daisuke Nishimura.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit
2009-12-07 2:37 [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit Bob Liu
2009-12-07 4:13 ` Daisuke Nishimura
@ 2009-12-07 8:05 ` Balbir Singh
1 sibling, 0 replies; 3+ messages in thread
From: Balbir Singh @ 2009-12-07 8:05 UTC (permalink / raw)
To: Bob Liu; +Cc: akpm, linux-mm, nishimura
* Bob Liu <lliubbo@gmail.com> [2009-12-07 10:37:24]:
> Variable progress isn't used in funtion mem_cgroup_resize_limit anymore.
> Remove it.
>
> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Good catch! Please run checkpatch.pl before submitting with the
changes recommended by Daisuke-San.
Reviewed-by: Balbir Singh <balbir@linux.vnet.ibm.com>
--
Balbir
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-07 8:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-07 2:37 [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit Bob Liu
2009-12-07 4:13 ` Daisuke Nishimura
2009-12-07 8:05 ` Balbir Singh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox