diff options
author | Mel Gorman <mel@csn.ul.ie> | 2009-09-21 20:02:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:34 -0400 |
commit | 38a398572fa2d8124f7479e40db581b5b72719c9 (patch) | |
tree | cad43f1cb00b760507278cc7b55f8e7fa4ab4fab | |
parent | cc013a88906bad9d2832d6316de1c7dbc1c2a794 (diff) |
page-allocator: remove dead function free_cold_page()
The function free_cold_page() has no callers so delete it.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/gfp.h | 1 | ||||
-rw-r--r-- | mm/page_alloc.c | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 7c777a0da17a..c32bfa8e7f1e 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h | |||
@@ -326,7 +326,6 @@ void free_pages_exact(void *virt, size_t size); | |||
326 | extern void __free_pages(struct page *page, unsigned int order); | 326 | extern void __free_pages(struct page *page, unsigned int order); |
327 | extern void free_pages(unsigned long addr, unsigned int order); | 327 | extern void free_pages(unsigned long addr, unsigned int order); |
328 | extern void free_hot_page(struct page *page); | 328 | extern void free_hot_page(struct page *page); |
329 | extern void free_cold_page(struct page *page); | ||
330 | 329 | ||
331 | #define __free_page(page) __free_pages((page), 0) | 330 | #define __free_page(page) __free_pages((page), 0) |
332 | #define free_page(addr) free_pages((addr),0) | 331 | #define free_page(addr) free_pages((addr),0) |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 20759803a64a..913a8ebd3a8e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1079,11 +1079,6 @@ void free_hot_page(struct page *page) | |||
1079 | free_hot_cold_page(page, 0); | 1079 | free_hot_cold_page(page, 0); |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | void free_cold_page(struct page *page) | ||
1083 | { | ||
1084 | free_hot_cold_page(page, 1); | ||
1085 | } | ||
1086 | |||
1087 | /* | 1082 | /* |
1088 | * split_page takes a non-compound higher-order page, and splits it into | 1083 | * split_page takes a non-compound higher-order page, and splits it into |
1089 | * n (1<<order) sub-pages: page[0..n] | 1084 | * n (1<<order) sub-pages: page[0..n] |