diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2009-01-06 17:40:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:06 -0500 |
commit | 09f445e7f5107c91be12ed386350de6cd055e0a4 (patch) | |
tree | 4a1114bb896f51e18efbdc05d57ec358abc5aced | |
parent | 01dbe5c9b1004dab045cb7f38428258ca9cddc02 (diff) |
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>
-rw-r--r-- | mm/vmscan.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 13f050d667e9..466a36b3bada 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) | |||
1167 | zone->prev_priority = priority; | 1167 | zone->prev_priority = priority; |
1168 | } | 1168 | } |
1169 | 1169 | ||
1170 | static inline int zone_is_near_oom(struct zone *zone) | ||
1171 | { | ||
1172 | return zone->pages_scanned >= (zone_lru_pages(zone) * 3); | ||
1173 | } | ||
1174 | |||
1175 | /* | 1170 | /* |
1176 | * This moves pages from the active list to the inactive list. | 1171 | * This moves pages from the active list to the inactive list. |
1177 | * | 1172 | * |