summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-10-07 20:38:55 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-07 20:38:55 -0700
commit15e28e8d45273677a31fad76102acc3bc4cf88f6 (patch)
treee73d70761b467d4e3e07398c4697623a11956fea /include/linux
parent76a0722ffe4c7b7832ec07f9e9de1c6e58c31d74 (diff)
[PATCH] remove get_free_page()
This used to be a macro wrapper around get_zeroed_page(). It was a dreadful choice of name, because it hid the fact that this function memsets the page. Probably, lots of the callers didn't actually want to do that but this patch does not make such optimisations. At least now, people may spot a `get_zeroed_page' in there and realise that the page doesn't actually need to be initialised. The patch also changes get_zeroed_page() to go BUG if called with __GFP_HIGHMEM. It returns the address of the page's memory and hence can only be used for direct-mapped pages (wli).
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/gfp.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index b186f69b7217..966344dff4b4 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -71,11 +71,6 @@ extern unsigned long FASTCALL(get_zeroed_page(unsigned int gfp_mask));
__get_free_pages((gfp_mask) | GFP_DMA,(order))
/*
- * The old interface name will be removed in 2.5:
- */
-#define get_free_page get_zeroed_page
-
-/*
* There is only one 'core' page-freeing function.
*/
extern void FASTCALL(__free_pages(struct page *page, unsigned int order));