projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] KVM: MMU: If emulating an instruction fails, try unprotecting the page
[powerpc.git]
/
mm
/
vmstat.c
diff --git
a/mm/vmstat.c
b/mm/vmstat.c
index
8614e8f
..
dc005a0
100644
(file)
--- a/
mm/vmstat.c
+++ b/
mm/vmstat.c
@@
-430,7
+430,7
@@
static int frag_show(struct seq_file *m, void *arg)
return 0;
}
return 0;
}
-struct seq_operations fragmentation_op = {
+
const
struct seq_operations fragmentation_op = {
.start = frag_start,
.next = frag_next,
.stop = frag_stop,
.start = frag_start,
.next = frag_next,
.stop = frag_stop,
@@
-452,7
+452,7
@@
struct seq_operations fragmentation_op = {
#define TEXTS_FOR_ZONES(xx) xx "_dma", TEXT_FOR_DMA32(xx) xx "_normal", \
TEXT_FOR_HIGHMEM(xx)
#define TEXTS_FOR_ZONES(xx) xx "_dma", TEXT_FOR_DMA32(xx) xx "_normal", \
TEXT_FOR_HIGHMEM(xx)
-static c
har *
vmstat_text[] = {
+static c
onst char * const
vmstat_text[] = {
/* Zoned VM counters */
"nr_anon_pages",
"nr_mapped",
/* Zoned VM counters */
"nr_anon_pages",
"nr_mapped",
@@
-597,7
+597,7
@@
static int zoneinfo_show(struct seq_file *m, void *arg)
return 0;
}
return 0;
}
-struct seq_operations zoneinfo_op = {
+
const
struct seq_operations zoneinfo_op = {
.start = frag_start, /* iterate over all zones. The same as in
* fragmentation. */
.next = frag_next,
.start = frag_start, /* iterate over all zones. The same as in
* fragmentation. */
.next = frag_next,
@@
-660,7
+660,7
@@
static void vmstat_stop(struct seq_file *m, void *arg)
m->private = NULL;
}
m->private = NULL;
}
-struct seq_operations vmstat_op = {
+
const
struct seq_operations vmstat_op = {
.start = vmstat_start,
.next = vmstat_next,
.stop = vmstat_stop,
.start = vmstat_start,
.next = vmstat_next,
.stop = vmstat_stop,
@@
-679,13
+679,13
@@
static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb,
void *hcpu)
{
switch (action) {
void *hcpu)
{
switch (action) {
-
case CPU_UP_PREPARE:
-
case CPU_UP_CANCELED:
-
case CPU_DEAD:
-
refresh_zone_stat_thresholds();
-
break;
-
default:
-
break;
+ case CPU_UP_PREPARE:
+ case CPU_UP_CANCELED:
+ case CPU_DEAD:
+ refresh_zone_stat_thresholds();
+ break;
+ default:
+ break;
}
return NOTIFY_OK;
}
}
return NOTIFY_OK;
}