linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5]  move ClearPageActive from move_active_pages() to shrink_active_list()
@ 2009-07-16  8:37 KOSAKI Motohiro
  2009-07-16  8:38 ` [PATCH 2/5] Kill unnecessary page flag test KOSAKI Motohiro
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: KOSAKI Motohiro @ 2009-07-16  8:37 UTC (permalink / raw)
  To: LKML, linux-mm, Andrew Morton; +Cc: kosaki.motohiro

This patch series are several vmscan cleanups.

===================
Subject: [PATCH] move ClearPageActive from move_active_pages() to shrink_active_list()

The mvoe_active_pages_to_lru() function is called under irq disabled and
ClearPageActive() doesn't need irq disabling.

Then, this patch move it into shrink_active_list().


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
---
 mm/vmscan.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Index: b/mm/vmscan.c
===================================================================
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1230,10 +1230,6 @@ static void move_active_pages_to_lru(str
 		VM_BUG_ON(PageLRU(page));
 		SetPageLRU(page);
 
-		VM_BUG_ON(!PageActive(page));
-		if (!is_active_lru(lru))
-			ClearPageActive(page);	/* we are de-activating */
-
 		list_move(&page->lru, &zone->lru[lru].list);
 		mem_cgroup_add_lru_list(page, lru);
 		pgmoved++;
@@ -1315,6 +1311,7 @@ static void shrink_active_list(unsigned 
 			}
 		}
 
+		ClearPageActive(page);	/* we are de-activating */
 		list_add(&page->lru, &l_inactive);
 	}
 


--
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] 10+ messages in thread

end of thread, other threads:[~2009-07-20 14:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-16  8:37 [PATCH 1/5] move ClearPageActive from move_active_pages() to shrink_active_list() KOSAKI Motohiro
2009-07-16  8:38 ` [PATCH 2/5] Kill unnecessary page flag test KOSAKI Motohiro
2009-07-16  8:39 ` [PATCH 3/5] Kill unnecessary prefetch KOSAKI Motohiro
2009-07-16  8:40 ` [PATCH 4/5] Use add_page_to_lru_list() helper function KOSAKI Motohiro
2009-07-17 12:18   ` Peter Zijlstra
2009-07-20  5:37     ` KOSAKI Motohiro
2009-07-20  7:28       ` Peter Zijlstra
2009-07-20 14:30         ` KOSAKI Motohiro
2009-07-16  8:40 ` [PATCH 5/5] move PGDEACTIVATE modification to shrink_active_list() KOSAKI Motohiro
2009-07-16 17:14 ` [PATCH 1/5] move ClearPageActive from move_active_pages() " Johannes Weiner

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).