aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2006-12-06 23:33:08 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:23 -0500
commitce421c799b5bde77aa60776d6fb61036ae0aea11 (patch)
tree98e0a52cdafdfa28c986991f57854209e68b8226
parent5d1854e15ee979f8e27330f0d3ce5e2703afa1dc (diff)
[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>
-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,
2042 int ret = NOTIFY_OK; 2042 int ret = NOTIFY_OK;
2043 2043
2044 switch (action) { 2044 switch (action) {
2045 case CPU_UP_PREPARE: 2045 case CPU_UP_PREPARE:
2046 if (process_zones(cpu)) 2046 if (process_zones(cpu))
2047 ret = NOTIFY_BAD; 2047 ret = NOTIFY_BAD;
2048 break; 2048 break;
2049 case CPU_UP_CANCELED: 2049 case CPU_UP_CANCELED:
2050 case CPU_DEAD: 2050 case CPU_DEAD:
2051 free_zone_pagesets(cpu); 2051 free_zone_pagesets(cpu);
2052 break; 2052 break;
2053 default: 2053 default:
2054 break; 2054 break;
2055 } 2055 }
2056 return ret; 2056 return ret;
2057} 2057}
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,
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}