linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
To: Bob Liu <lliubbo@gmail.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org,
	balbir@linux.vnet.ibm.com,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Subject: Re: [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit
Date: Mon, 7 Dec 2009 13:13:22 +0900	[thread overview]
Message-ID: <20091207131322.fdb195b5.nishimura@mxp.nes.nec.co.jp> (raw)
In-Reply-To: <cf18f8340912061837j16c9aa25vc6af8a4a1fce989c@mail.gmail.com>

(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>

  reply	other threads:[~2009-12-07  4:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07  2:37 Bob Liu
2009-12-07  4:13 ` Daisuke Nishimura [this message]
2009-12-07  8:05 ` Balbir Singh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091207131322.fdb195b5.nishimura@mxp.nes.nec.co.jp \
    --to=nishimura@mxp.nes.nec.co.jp \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=lliubbo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox