]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memcontrol: use kstrtobool for swapaccount param parsing
authorLiu Shixin <liushixin2@huawei.com>
Tue, 13 Sep 2022 07:13:58 +0000 (15:13 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:14 +0000 (14:03 -0700)
commit7f8ee36341148ae9d68522cd1f9e68865b22a71b
treebe6f5eada69766b004ca873965ebbd8e25d3e4b2
parent91eed9d1c96c0c3fd7099d5b0b19e078fddaf3a8
mm/memcontrol: use kstrtobool for swapaccount param parsing

Use kstrtobool which is more powerful to handle all kinds of parameters
like 'Yy1Nn0' or [oO][NnFf] for "on" and "off".

Link: https://lkml.kernel.org/r/20220913071358.1812206-1-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c