Skip to content

Commit

Permalink
mm: kill zone_is_near_oom()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Jan 6, 2009
1 parent 01dbe5c commit 09f445e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 09f445e

Please sign in to comment.