Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83da7510 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds
Browse files

vmscan: reclaim_clean_pages_from_list() must use mod_zone_page_state()



Seems to be called with preemption enabled.  Therefore it must use
mod_zone_page_state instead.

Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Reported-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Tested-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 674366e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1158,7 +1158,7 @@ unsigned long reclaim_clean_pages_from_list(struct zone *zone,
			TTU_UNMAP|TTU_IGNORE_ACCESS,
			&dummy1, &dummy2, &dummy3, &dummy4, &dummy5, true);
	list_splice(&clean_pages, page_list);
	__mod_zone_page_state(zone, NR_ISOLATED_FILE, -ret);
	mod_zone_page_state(zone, NR_ISOLATED_FILE, -ret);
	return ret;
}