summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-07-28 03:14:12 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-28 03:14:12 -0700
commitc1ab3459d0ce0820b4bcddfa55fde62bb88d13c1 (patch)
tree262951d2239ed9182905bb3a6dff8d939c3189bc /include/linux/mm.h
parentcbb6e8ecaa8ec7e08ee2b0095236fabb87638742 (diff)
[PATCH] show_free_areas() cleanup
Cleanup to show_free_areas() from Bill Irwin: show_free_areas() and show_free_areas_core() is a mess. (1) it uses a bizarre and ugly form of list iteration to walk buddy lists use standard list functions instead (2) it prints the same information repeatedly once per-node rationalize the braindamaged iteration logic (3) show_free_areas_node() is useless and not called anywhere remove it entirely (4) show_free_areas() itself just calls show_free_areas_core() remove show_free_areas_core() and do the stuff directly (5) SWAP_CACHE_INFO is always #defined, remove it (6) INC_CACHE_INFO() doesn't use the do { } while (0) construct This patch also includes Matthew Dobson's patch which removes mm/numa.c:node_lock. The consensus is that it doesn't do anything now that show_free_areas_node() isn't there.
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 685868b9e0e4..891b4b5e8e29 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -327,7 +327,6 @@ static inline void set_page_zone(struct page *page, unsigned long zone_num)
extern struct page *mem_map;
extern void show_free_areas(void);
-extern void show_free_areas_node(pg_data_t *pgdat);
extern int fail_writepage(struct page *);
struct page * shmem_nopage(struct vm_area_struct * vma, unsigned long address, int unused);