Commit 5205e56e authored by KOSAKI Motohiro's avatar KOSAKI Motohiro Committed by Linus Torvalds

vmscan: move ClearPageActive from move_active_pages() to shrink_active_list()

The move_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: default avatarKOSAKI Motohiro <>
Reviewed-by: default avatarJohannes Weiner <>
Cc: Rik van Riel <>
Cc: Minchan Kim <>
Cc: Mel Gorman <>
Cc: Wu Fengguang <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent de2e7567
......@@ -1278,10 +1278,6 @@ static void move_active_pages_to_lru(struct zone *zone,
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);
......@@ -1363,6 +1359,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
ClearPageActive(page); /* we are de-activating */
list_add(&page->lru, &l_inactive);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment