Skip to content

Commit 1895418

Browse files
jiangliutorvalds
authored andcommitted
mm: kill global variable num_physpages
Now all references to num_physpages have been removed, so kill it. Signed-off-by: Jiang Liu <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Jiang Liu <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: David Rientjes <[email protected]> Cc: Al Viro <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 808c2c3 commit 1895418

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

include/linux/mm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ struct writeback_control;
2929
extern unsigned long max_mapnr;
3030
#endif
3131

32-
extern unsigned long num_physpages;
3332
extern unsigned long totalram_pages;
3433
extern void * high_memory;
3534
extern int page_cluster;

mm/memory.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ EXPORT_SYMBOL(max_mapnr);
8282
EXPORT_SYMBOL(mem_map);
8383
#endif
8484

85-
unsigned long num_physpages;
8685
/*
8786
* A number of key systems in x86 including ioremap() rely on the assumption
8887
* that high_memory defines the upper bound on direct map memory, then end
@@ -92,7 +91,6 @@ unsigned long num_physpages;
9291
*/
9392
void * high_memory;
9493

95-
EXPORT_SYMBOL(num_physpages);
9694
EXPORT_SYMBOL(high_memory);
9795

9896
/*

mm/nommu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
void *high_memory;
5757
struct page *mem_map;
5858
unsigned long max_mapnr;
59-
unsigned long num_physpages;
6059
unsigned long highest_memmap_pfn;
6160
struct percpu_counter vm_committed_as;
6261
int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
@@ -85,7 +84,6 @@ unsigned long vm_memory_committed(void)
8584
EXPORT_SYMBOL_GPL(vm_memory_committed);
8685

8786
EXPORT_SYMBOL(mem_map);
88-
EXPORT_SYMBOL(num_physpages);
8987

9088
/* list of mapped, potentially shareable regions */
9189
static struct kmem_cache *vm_region_jar;

0 commit comments

Comments
 (0)