提交 09f445e7 编写于 作者: K KOSAKI Motohiro 提交者: Linus Torvalds

mm: kill zone_is_near_oom()

zone_is_near_oom() is unused.
Signed-off-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 01dbe5c9
...@@ -1167,11 +1167,6 @@ static inline void note_zone_scanning_priority(struct zone *zone, int priority) ...@@ -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.
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册