summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2006-12-06 20:33:08 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 08:39:23 -0800
commitce421c799b5bde77aa60776d6fb61036ae0aea11 (patch)
tree98e0a52cdafdfa28c986991f57854209e68b8226 /mm
parent5d1854e15ee979f8e27330f0d3ce5e2703afa1dc (diff)
downloadlinux-ce421c799b5bde77aa60776d6fb61036ae0aea11.tar.gz
linux-ce421c799b5bde77aa60776d6fb61036ae0aea11.tar.bz2
linux-ce421c799b5bde77aa60776d6fb61036ae0aea11.zip
[PATCH] mm: cleanup indentation on switch for CPU operations
These patches introduced new switch statements which are indented contrary to the concensus in mm/*.c. Fix them up to match that concensus. [PATCH] node local per-cpu-pages [PATCH] ZVC: Scale thresholds depending on the size of the system commit e7c8d5c9955a4d2e88e36b640563f5d6d5aba48a commit df9ecaba3f152d1ea79f2a5e0b87505e03f47590 Signed-off-by: Andy Whitcroft <apw@shadowen.org> Cc: Christoph Lameter <clameter@engr.sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c20
-rw-r--r--mm/vmstat.c14
2 files changed, 17 insertions, 17 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 614d427854a8..5d123b399713 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2042,16 +2042,16 @@ static int __cpuinit pageset_cpuup_callback(struct notifier_block *nfb,
int ret = NOTIFY_OK;
switch (action) {
- case CPU_UP_PREPARE:
- if (process_zones(cpu))
- ret = NOTIFY_BAD;
- break;
- case CPU_UP_CANCELED:
- case CPU_DEAD:
- free_zone_pagesets(cpu);
- break;
- default:
- break;
+ case CPU_UP_PREPARE:
+ if (process_zones(cpu))
+ ret = NOTIFY_BAD;
+ break;
+ case CPU_UP_CANCELED:
+ case CPU_DEAD:
+ free_zone_pagesets(cpu);
+ break;
+ default:
+ break;
}
return ret;
}
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 8614e8f6743b..ef4176843d9e 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -679,13 +679,13 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb,
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;
}