Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232721
b: refs/heads/master
c: fceda1b
h: refs/heads/master
i:
  232719: ef56c15
v: v3
  • Loading branch information
Michal Hocko authored and Linus Torvalds committed Feb 3, 2011
1 parent d5a88b3 commit 0e59279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afe8a887550f7cc24eb16449670b93f6b43c32d8
refs/heads/master: fceda1bf498677501befc7da72fd2e4de7f18466
6 changes: 3 additions & 3 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5024,17 +5024,17 @@ 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;
}
__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);
Expand Down

0 comments on commit 0e59279

Please sign in to comment.