diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-07 16:35:17 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-07 16:35:17 -0500 |
commit | 21b4e736922f546e0f1aa7b9d6c442f309a2444a (patch) | |
tree | e1be8645297f8ebe87445251743ebcc52081a20d /mm/vmstat.c | |
parent | 34161db6b14d984fb9b06c735b7b42f8803f6851 (diff) | |
parent | 68380b581383c028830f79ec2670f4a193854aa6 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/ into merge_linus
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 8614e8f6743b..dc005a0c96ae 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -430,7 +430,7 @@ static int frag_show(struct seq_file *m, void *arg) | |||
430 | return 0; | 430 | return 0; |
431 | } | 431 | } |
432 | 432 | ||
433 | struct seq_operations fragmentation_op = { | 433 | const struct seq_operations fragmentation_op = { |
434 | .start = frag_start, | 434 | .start = frag_start, |
435 | .next = frag_next, | 435 | .next = frag_next, |
436 | .stop = frag_stop, | 436 | .stop = frag_stop, |
@@ -452,7 +452,7 @@ struct seq_operations fragmentation_op = { | |||
452 | #define TEXTS_FOR_ZONES(xx) xx "_dma", TEXT_FOR_DMA32(xx) xx "_normal", \ | 452 | #define TEXTS_FOR_ZONES(xx) xx "_dma", TEXT_FOR_DMA32(xx) xx "_normal", \ |
453 | TEXT_FOR_HIGHMEM(xx) | 453 | TEXT_FOR_HIGHMEM(xx) |
454 | 454 | ||
455 | static char *vmstat_text[] = { | 455 | static const char * const vmstat_text[] = { |
456 | /* Zoned VM counters */ | 456 | /* Zoned VM counters */ |
457 | "nr_anon_pages", | 457 | "nr_anon_pages", |
458 | "nr_mapped", | 458 | "nr_mapped", |
@@ -597,7 +597,7 @@ static int zoneinfo_show(struct seq_file *m, void *arg) | |||
597 | return 0; | 597 | return 0; |
598 | } | 598 | } |
599 | 599 | ||
600 | struct seq_operations zoneinfo_op = { | 600 | const struct seq_operations zoneinfo_op = { |
601 | .start = frag_start, /* iterate over all zones. The same as in | 601 | .start = frag_start, /* iterate over all zones. The same as in |
602 | * fragmentation. */ | 602 | * fragmentation. */ |
603 | .next = frag_next, | 603 | .next = frag_next, |
@@ -660,7 +660,7 @@ static void vmstat_stop(struct seq_file *m, void *arg) | |||
660 | m->private = NULL; | 660 | m->private = NULL; |
661 | } | 661 | } |
662 | 662 | ||
663 | struct seq_operations vmstat_op = { | 663 | const struct seq_operations vmstat_op = { |
664 | .start = vmstat_start, | 664 | .start = vmstat_start, |
665 | .next = vmstat_next, | 665 | .next = vmstat_next, |
666 | .stop = vmstat_stop, | 666 | .stop = vmstat_stop, |
@@ -679,13 +679,13 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb, | |||
679 | void *hcpu) | 679 | void *hcpu) |
680 | { | 680 | { |
681 | switch (action) { | 681 | switch (action) { |
682 | case CPU_UP_PREPARE: | 682 | case CPU_UP_PREPARE: |
683 | case CPU_UP_CANCELED: | 683 | case CPU_UP_CANCELED: |
684 | case CPU_DEAD: | 684 | case CPU_DEAD: |
685 | refresh_zone_stat_thresholds(); | 685 | refresh_zone_stat_thresholds(); |
686 | break; | 686 | break; |
687 | default: | 687 | default: |
688 | break; | 688 | break; |
689 | } | 689 | } |
690 | return NOTIFY_OK; | 690 | return NOTIFY_OK; |
691 | } | 691 | } |