Commit ae0f15fb authored by KAMEZAWA Hiroyuki's avatar KAMEZAWA Hiroyuki Committed by Linus Torvalds

[PATCH] for_each_online_pgdat: remove pgdat_list

By using for_each_online_pgdat(), pgdat_list is not necessary now.  This patch
removes it.
Signed-off-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3571761f
...@@ -307,7 +307,6 @@ typedef struct pglist_data { ...@@ -307,7 +307,6 @@ typedef struct pglist_data {
unsigned long node_spanned_pages; /* total size of physical page unsigned long node_spanned_pages; /* total size of physical page
range, including holes */ range, including holes */
int node_id; int node_id;
struct pglist_data *pgdat_next;
wait_queue_head_t kswapd_wait; wait_queue_head_t kswapd_wait;
struct task_struct *kswapd; struct task_struct *kswapd;
int kswapd_max_order; int kswapd_max_order;
...@@ -324,8 +323,6 @@ typedef struct pglist_data { ...@@ -324,8 +323,6 @@ typedef struct pglist_data {
#include <linux/memory_hotplug.h> #include <linux/memory_hotplug.h>
extern struct pglist_data *pgdat_list;
void __get_zone_counts(unsigned long *active, unsigned long *inactive, void __get_zone_counts(unsigned long *active, unsigned long *inactive,
unsigned long *free, struct pglist_data *pgdat); unsigned long *free, struct pglist_data *pgdat);
void get_zone_counts(unsigned long *active, unsigned long *inactive, void get_zone_counts(unsigned long *active, unsigned long *inactive,
......
...@@ -49,7 +49,6 @@ nodemask_t node_online_map __read_mostly = { { [0] = 1UL } }; ...@@ -49,7 +49,6 @@ nodemask_t node_online_map __read_mostly = { { [0] = 1UL } };
EXPORT_SYMBOL(node_online_map); EXPORT_SYMBOL(node_online_map);
nodemask_t node_possible_map __read_mostly = NODE_MASK_ALL; nodemask_t node_possible_map __read_mostly = NODE_MASK_ALL;
EXPORT_SYMBOL(node_possible_map); EXPORT_SYMBOL(node_possible_map);
struct pglist_data *pgdat_list __read_mostly;
unsigned long totalram_pages __read_mostly; unsigned long totalram_pages __read_mostly;
unsigned long totalhigh_pages __read_mostly; unsigned long totalhigh_pages __read_mostly;
long nr_swap_pages; long nr_swap_pages;
...@@ -2169,8 +2168,9 @@ static void *frag_start(struct seq_file *m, loff_t *pos) ...@@ -2169,8 +2168,9 @@ static void *frag_start(struct seq_file *m, loff_t *pos)
{ {
pg_data_t *pgdat; pg_data_t *pgdat;
loff_t node = *pos; loff_t node = *pos;
for (pgdat = first_online_pgdat();
for (pgdat = pgdat_list; pgdat && node; pgdat = pgdat->pgdat_next) pgdat && node;
pgdat = next_online_pgdat(pgdat))
--node; --node;
return pgdat; return pgdat;
...@@ -2181,7 +2181,7 @@ static void *frag_next(struct seq_file *m, void *arg, loff_t *pos) ...@@ -2181,7 +2181,7 @@ static void *frag_next(struct seq_file *m, void *arg, loff_t *pos)
pg_data_t *pgdat = (pg_data_t *)arg; pg_data_t *pgdat = (pg_data_t *)arg;
(*pos)++; (*pos)++;
return pgdat->pgdat_next; return next_online_pgdat(pgdat);
} }
static void frag_stop(struct seq_file *m, void *arg) static void frag_stop(struct seq_file *m, void *arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment