summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2005-01-03 04:14:14 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-03 04:14:14 -0800
commitf86789bcbbcba553d5f7d489224c1e8878e7d209 (patch)
tree65fd945f4414571c31d7d6ca85dbc61e9ca03c4c /include/linux
parent7aee2fc8199baf85a9060f32aee9f433ac2dcc1e (diff)
[PATCH] mm: keep count of free areas
Keep track of the number of free pages of each order in the buddy allocator. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index f13406a8d4aa..68172434877b 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -23,6 +23,7 @@
struct free_area {
struct list_head free_list;
unsigned long *map;
+ unsigned long nr_free;
};
struct pglist_data;