]> Git Repo - linux.git/commit - mm/vmscan.c
vmscan: set up pagevec as late as possible in shrink_page_list()
authorMel Gorman <[email protected]>
Tue, 10 Aug 2010 00:19:31 +0000 (17:19 -0700)
committerLinus Torvalds <[email protected]>
Tue, 10 Aug 2010 03:45:00 +0000 (20:45 -0700)
commitabe4c3b50c3f25cb1baf56036024860f12f96015
tree20ac47ac168b30f1dde6773d103ed13432802049
parent666356297ec4e9e6594c6008803f2b1403ff7950
vmscan: set up pagevec as late as possible in shrink_page_list()

shrink_page_list() sets up a pagevec to release pages as according as they
are free.  It uses significant amounts of stack on the pagevec.  This
patch adds pages to be freed via pagevec to a linked list which is then
freed en-masse at the end.  This avoids using stack in the main path that
potentially calls writepage().

Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Michael Rubin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c
This page took 0.054082 seconds and 4 git commands to generate.