summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2005-01-03 04:14:29 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-03 04:14:29 -0800
commit206ca74edc648af67a6ea386f917f30c7cf1b108 (patch)
tree9b5bf0d911cd61e2b1bb9b00e6b8839d3442c635 /include/linux
parentf86789bcbbcba553d5f7d489224c1e8878e7d209 (diff)
[PATCH] mm: higher order watermarks
Move the watermark checking code into a single function. Extend it to account for the order of the allocation and the number of free pages that could satisfy such a request. From: Marcelo Tosatti <marcelo.tosatti@cyclades.com> Fix typo in Nick's kswapd-high-order awareness patch Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmzone.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 68172434877b..2fd19fa8d0c9 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -280,6 +280,8 @@ void get_zone_counts(unsigned long *active, unsigned long *inactive,
unsigned long *free);
void build_all_zonelists(void);
void wakeup_kswapd(struct zone *zone);
+int zone_watermark_ok(struct zone *z, int order, unsigned long mark,
+ int alloc_type, int can_try_harder, int gfp_high);
/*
* zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.