From: KOSAKI Motohiro Date: Tue, 6 Jan 2009 22:40:03 +0000 (-0800) Subject: mm: kill zone_is_near_oom() X-Git-Tag: v2.6.29-rc1~420 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=09f445e7f5107c91be12ed386350de6cd055e0a4;p=linux-2.6-omap-h63xx.git mm: kill zone_is_near_oom() zone_is_near_oom() is unused. Signed-off-by: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 13f050d667e..466a36b3bad 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1167,11 +1167,6 @@ static inline void note_zone_scanning_priority(struct zone *zone, int priority) zone->prev_priority = priority; } -static inline int zone_is_near_oom(struct zone *zone) -{ - return zone->pages_scanned >= (zone_lru_pages(zone) * 3); -} - /* * This moves pages from the active list to the inactive list. *