linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Bob Liu <lliubbo@gmail.com>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, balbir@linux.vnet.ibm.com,
	nishimura@mxp.nes.nec.co.jp
Subject: [PATCH] memcg: code clean,rm unused variable in mem_cgroup_resize_limit
Date: Mon, 7 Dec 2009 10:37:24 +0800	[thread overview]
Message-ID: <cf18f8340912061837j16c9aa25vc6af8a4a1fce989c@mail.gmail.com> (raw)

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>

             reply	other threads:[~2009-12-07  2:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07  2:37 Bob Liu [this message]
2009-12-07  4:13 ` Daisuke Nishimura
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=cf18f8340912061837j16c9aa25vc6af8a4a1fce989c@mail.gmail.com \
    --to=lliubbo@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=linux-mm@kvack.org \
    --cc=nishimura@mxp.nes.nec.co.jp \
    /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