mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] for_each_online_pgdat: renaming for_each_pgdat
Replace for_each_pgdat() with for_each_online_pgdat(). Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
679bc9fbb5
commit
ec936fc563
9 changed files with 15 additions and 15 deletions
|
|
@ -1201,7 +1201,7 @@ unsigned int nr_free_highpages (void)
|
|||
pg_data_t *pgdat;
|
||||
unsigned int pages = 0;
|
||||
|
||||
for_each_pgdat(pgdat)
|
||||
for_each_online_pgdat(pgdat)
|
||||
pages += pgdat->node_zones[ZONE_HIGHMEM].free_pages;
|
||||
|
||||
return pages;
|
||||
|
|
@ -1343,7 +1343,7 @@ void get_zone_counts(unsigned long *active,
|
|||
*active = 0;
|
||||
*inactive = 0;
|
||||
*free = 0;
|
||||
for_each_pgdat(pgdat) {
|
||||
for_each_online_pgdat(pgdat) {
|
||||
unsigned long l, m, n;
|
||||
__get_zone_counts(&l, &m, &n, pgdat);
|
||||
*active += l;
|
||||
|
|
@ -2482,7 +2482,7 @@ static void setup_per_zone_lowmem_reserve(void)
|
|||
struct pglist_data *pgdat;
|
||||
int j, idx;
|
||||
|
||||
for_each_pgdat(pgdat) {
|
||||
for_each_online_pgdat(pgdat) {
|
||||
for (j = 0; j < MAX_NR_ZONES; j++) {
|
||||
struct zone *zone = pgdat->node_zones + j;
|
||||
unsigned long present_pages = zone->present_pages;
|
||||
|
|
|
|||
|
|
@ -1305,7 +1305,7 @@ unsigned long shrink_all_memory(unsigned long nr_pages)
|
|||
|
||||
current->reclaim_state = &reclaim_state;
|
||||
repeat:
|
||||
for_each_pgdat(pgdat) {
|
||||
for_each_online_pgdat(pgdat) {
|
||||
unsigned long freed;
|
||||
|
||||
freed = balance_pgdat(pgdat, nr_to_free, 0);
|
||||
|
|
@ -1335,7 +1335,7 @@ static int __devinit cpu_callback(struct notifier_block *nfb,
|
|||
cpumask_t mask;
|
||||
|
||||
if (action == CPU_ONLINE) {
|
||||
for_each_pgdat(pgdat) {
|
||||
for_each_online_pgdat(pgdat) {
|
||||
mask = node_to_cpumask(pgdat->node_id);
|
||||
if (any_online_cpu(mask) != NR_CPUS)
|
||||
/* One of our CPUs online: restore mask */
|
||||
|
|
@ -1351,7 +1351,7 @@ static int __init kswapd_init(void)
|
|||
pg_data_t *pgdat;
|
||||
|
||||
swap_setup();
|
||||
for_each_pgdat(pgdat) {
|
||||
for_each_online_pgdat(pgdat) {
|
||||
pid_t pid;
|
||||
|
||||
pid = kernel_thread(kswapd, pgdat, CLONE_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue