[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ee96ad93-e40b-6614-6cf7-b64bbc78ebc2@huawei.com>
Date: Fri, 9 Sep 2022 16:15:04 +0800
From: Liu Shixin <liushixin2@...wei.com>
To: Michal Hocko <mhocko@...e.com>,
Andrew Morton <akpm@...ux-foundation.org>
CC: Jonathan Corbet <corbet@....net>,
Johannes Weiner <hannes@...xchg.org>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Shakeel Butt <shakeelb@...gle.com>,
Muchun Song <songmuchun@...edance.com>,
<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<cgroups@...r.kernel.org>, <linux-mm@...ck.org>,
Kefeng Wang <wangkefeng.wang@...wei.com>
Subject: Re: [PATCH] mm/memcontrol: use kstrtobool for swapaccount param
parsing
On 2022/9/9 15:37, Michal Hocko wrote:
> On Thu 08-09-22 15:02:48, Andrew Morton wrote:
>> On Thu, 8 Sep 2022 16:34:52 +0800 Liu Shixin <liushixin2@...wei.com> wrote:
>>
>>> --- a/mm/swap_cgroup.c
>>> +++ b/mm/swap_cgroup.c
>>> @@ -194,7 +194,7 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
>>> return 0;
>>> nomem:
>>> pr_info("couldn't allocate enough memory for swap_cgroup\n");
>>> - pr_info("swap_cgroup can be disabled by swapaccount=0 boot option\n");
>>> + pr_info("swap_cgroup can be disabled by swapaccount=[oO][Ff]/N/n/0 boot option\n");
>> I'm not sure this really needed changing. "=0" was OK and the message
>> now looks rather silly.
> Agreed. While swapaccount=0 is clear the extended form, even if correct,
> might just confuse some admins.
Thanks, the previous info is more appropriate, I will update the patch.
Powered by blists - more mailing lists