From: Konstantin Khlebnikov Date: Tue, 29 May 2012 22:06:57 +0000 (-0700) Subject: mm/vmscan: store "priority" in struct scan_control X-Git-Tag: v3.5-rc1~49^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e3b2f8cd340e13353a44c9a34caef2848131ed7;p=pandora-kernel.git mm/vmscan: store "priority" in struct scan_control In memory reclaim some function have too many arguments - "priority" is one of them. It can be stored in struct scan_control - we construct them on the same level. Instead of an open coded loop we set the initial sc.priority, and do_try_to_free_pages() decreases it down to zero. Signed-off-by: Konstantin Khlebnikov Cc: Mel Gorman Cc: KAMEZAWA Hiroyuki Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed