linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [cleanup][PATCH] Kill anon local variable from migrate_page_copy
@ 2010-01-20  6:06 KOSAKI Motohiro
  0 siblings, 0 replies; only message in thread
From: KOSAKI Motohiro @ 2010-01-20  6:06 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki, Daisuke Nishimura, LKML, linux-mm, Andrew Morton
  Cc: kosaki.motohiro


commit 01b1ae63c2 (memcg: simple migration handling) removed
mem_cgroup_uncharge_cache_page() call from migrate_page_copy.
Then, now anon variable is unused.

This patch remove it.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
---
 mm/migrate.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/mm/migrate.c b/mm/migrate.c
index efddbf0..9e4a13f 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -275,8 +275,6 @@ static int migrate_page_move_mapping(struct address_space *mapping,
  */
 static void migrate_page_copy(struct page *newpage, struct page *page)
 {
-	int anon;
-
 	copy_highpage(newpage, page);
 
 	if (PageError(page))
@@ -313,8 +311,6 @@ static void migrate_page_copy(struct page *newpage, struct page *page)
 	ClearPageSwapCache(page);
 	ClearPagePrivate(page);
 	set_page_private(page, 0);
-	/* page->mapping contains a flag for PageAnon() */
-	anon = PageAnon(page);
 	page->mapping = NULL;
 
 	/*
-- 
1.6.5.2



--
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] only message in thread

only message in thread, other threads:[~2010-01-20  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-20  6:06 [cleanup][PATCH] Kill anon local variable from migrate_page_copy KOSAKI Motohiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox