summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-10-04 20:35:08 -0700
committerRussell King <rmk@flint.arm.linux.org.uk>2002-10-04 20:35:08 -0700
commitbf3f607a57d27cab30d5ddfd203d873856bc22b7 (patch)
tree37173622f60ba23844e5923b11ec59ce5baa0895 /include/linux
parentfe66ad33c85b565d428bd1c5e3f2f84abf82a9e2 (diff)
[PATCH] separation of direct-reclaim and kswapd functions
There is some lack of clarity in what kswapd does and what direct-reclaim tasks do; try_to_free_pages() tries to service both functions, and they are different. - kswapd's role is to keep all zones on its node at zone->free_pages >= zone->pages_high. and to never stop as long as any zones do not meet that condition. - A direct reclaimer's role is to try to free some pages from the zones which are suitable for this particular allocation request, and to return when that has been achieved, or when all the relevant zones are at zone->free_pages >= zone->pages_high. The patch explicitly separates these two code paths; kswapd does not run try_to_free_pages() any more. kswapd should not be aware of zone fallbacks.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmzone.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index dab0f76cfb20..2b83fca9e08d 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -62,7 +62,6 @@ struct zone {
spinlock_t lock;
unsigned long free_pages;
unsigned long pages_min, pages_low, pages_high;
- int need_balance;
ZONE_PADDING(_pad1_)