From: Shaohua Li Date: Tue, 26 Oct 2010 21:21:37 +0000 (-0700) Subject: vmscan: delete dead code X-Git-Tag: upstream/snapshot3+hdmi~12647^2~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66d9a986cddbbc2ea5db013e7999c621a956cc47;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git vmscan: delete dead code `priority' cannot be negative here. And the comment is obsolete. Signed-off-by: Shaohua Li Reviewed-by: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 0c33a09..28b0521 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1956,16 +1956,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist, } out: - /* - * Now that we've scanned all the zones at this priority level, note - * that level within the zone so that the next thread which performs - * scanning of this zone will immediately start out at this priority - * level. This affects only the decision whether or not to bring - * mapped pages onto the inactive list. - */ - if (priority < 0) - priority = 0; - delayacct_freepages_end(); put_mems_allowed();