summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-01-14 00:20:32 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-14 00:20:32 -0800
commitdaebe5ee58fa9985c257a1ce5df29fcb258f06d3 (patch)
treeb99fa22dee6cff613303b752626fc15eac0c8f9b /include/linux
parent42f834c3df4fbd9ca503942555d26ecf9d28e8f7 (diff)
[PATCH] factor free memory into max_sane_readahead()
max_sane_readahead() permits the user to readahead up to half-the-inactive-list's worth of pages. Which is totally wrong if most of memory is free. So make the limit be (nr_inactive + nr_free) / 2
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmzone.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 14ce2049de71..bcb57ed21a8d 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -193,7 +193,8 @@ typedef struct pglist_data {
extern int numnodes;
extern struct pglist_data *pgdat_list;
-void get_zone_counts(unsigned long *active, unsigned long *inactive);
+void get_zone_counts(unsigned long *active, unsigned long *inactive,
+ unsigned long *free);
void build_all_zonelists(void);
void wakeup_kswapd(struct zone *zone);