From 0e59279ec93878061fb5d9afb99c84fe2d914d66 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Tue, 1 Feb 2011 15:52:30 -0800 Subject: [PATCH] --- yaml --- r: 232721 b: refs/heads/master c: fceda1bf498677501befc7da72fd2e4de7f18466 h: refs/heads/master i: 232719: ef56c153fb21e535f2646523a1525afff619b222 v: v3 --- [refs] | 2 +- trunk/mm/memcontrol.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 995c9b450509..839163efeb24 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: afe8a887550f7cc24eb16449670b93f6b43c32d8 +refs/heads/master: fceda1bf498677501befc7da72fd2e4de7f18466 diff --git a/trunk/mm/memcontrol.c b/trunk/mm/memcontrol.c index 3878cfe399dc..44f9f9c89f0c 100644 --- a/trunk/mm/memcontrol.c +++ b/trunk/mm/memcontrol.c @@ -5024,9 +5024,9 @@ struct cgroup_subsys mem_cgroup_subsys = { static int __init enable_swap_account(char *s) { /* consider enabled if no parameter or 1 is given */ - if (!s || !strcmp(s, "1")) + if (!(*s) || !strcmp(s, "=1")) really_do_swap_account = 1; - else if (!strcmp(s, "0")) + else if (!strcmp(s, "=0")) really_do_swap_account = 0; return 1; } @@ -5034,7 +5034,7 @@ __setup("swapaccount", enable_swap_account); static int __init disable_swap_account(char *s) { - enable_swap_account("0"); + enable_swap_account("=0"); return 1; } __setup("noswapaccount", disable_swap_account);