mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
mm: kill zone_is_near_oom()
zone_is_near_oom() is unused. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
01dbe5c9b1
commit
09f445e7f5
1 changed files with 0 additions and 5 deletions
|
@ -1167,11 +1167,6 @@ static inline void note_zone_scanning_priority(struct zone *zone, int priority)
|
||||||
zone->prev_priority = 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.
|
* This moves pages from the active list to the inactive list.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue