diff options
author | 2011-02-01 15:52:30 -0800 | |
---|---|---|
committer | 2011-02-02 16:03:18 -0800 | |
commit | fceda1bf498677501befc7da72fd2e4de7f18466 (patch) | |
tree | c23057e5368fc00b0f1c662ea9bd4b3b123c370c /mm/memory-failure.c | |
parent | Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze (diff) | |
download | linux-dev-fceda1bf498677501befc7da72fd2e4de7f18466.tar.xz linux-dev-fceda1bf498677501befc7da72fd2e4de7f18466.zip |
memsw: handle swapaccount kernel parameter correctly
__setup based kernel command line parameters handlers which are handled in
obsolete_checksetup are provided with the parameter value including =
(more precisely everything right after the parameter name).
This means that the current implementation of swapaccount[=1|0] doesn't
work at all because if there is a value for the parameter then we are
testing for "0" resp. "1" but we are getting "=0" resp. "=1" and if
there is no parameter value we are getting an empty string rather than
NULL.
The original noswapccount parameter, which doesn't care about the value,
works correctly.
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions