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

Commit 09f445e7 authored by KOSAKI Motohiro's avatar KOSAKI Motohiro Committed by Linus Torvalds
Browse files

mm: kill zone_is_near_oom()



zone_is_near_oom() is unused.

Signed-off-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 01dbe5c9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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.
 *