Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1644532rwn; Fri, 9 Sep 2022 01:31:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR7omabVn0oLh4cLJETZLndVWBeO4HWOuFDhar71u0bb824G0O2bhsvDTBXT/cuTkAE4+9yA X-Received: by 2002:a05:6512:282a:b0:497:2d5b:e82d with SMTP id cf42-20020a056512282a00b004972d5be82dmr4400245lfb.193.1662712287185; Fri, 09 Sep 2022 01:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662712287; cv=none; d=google.com; s=arc-20160816; b=Jpc8d+7z9/L0ajd2+sAkaSbH/ax/fjN8leJmcfFha3T04juRd+jMH5HdaLrYfTW1TQ aQeRo6poahhDz7KeyVl7eeVdBNjC/QlZ9yXTcXMaF8dhFjQtymW4MzTz6UilItFcz916 2+a0yQLHk4tVJTvRFN8PrvzRopy3BwAx7KDITY0UVkrF0PAanGt5OWVHFaJV6rPaucEk wUFgZGhao341APCnsmc2X1Gs6WNLFHajtNmSgNQpxoNrvfSvhncDOQ5QoUXVVcFz83fR hvK1uooCOuAkyEAbQQsnh9F7ygqQsfWjte1Tff4KQMo9EYDwnZBlStdiLxyKHx8eIfxK ssyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=QumEMNpJ4lQtIUEUoPYm6XdEYJHbo7yQ8eYCyoAYWJs=; b=UTn7gnfA8IWhXu1UYwKpKY9daCTRtD+nDbtytIuVOWaQPraNOe5VcZ/dG0x4UijO/8 SV0Nbm07K5XV+VH7yyUuuwtA9oUcHedlA5eocdnwelKsTWoQAm/dzGownI38qDk3Bxov PLSU7w1M9/fj+L4iI9QUZ4NA19l4afUSQPPtzy3pgI90UlAoFXSuv4T2UhR5U1E2jZFd xWMunUBA5ozALYMKikVFkfQZ5WN+7ezE12L2IySzzjNQc+k2bt05hY4h5EL7Vd/IwXQU qRiZyNJq+XPMoyL+sUQJmxJFKqV4/2iKRi+MsPZNLlF7HsY4b6qmLC+ll8EBly0YG8RJ ejuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a056512228f00b004972aadcd78si619791lfu.147.2022.09.09.01.30.57; Fri, 09 Sep 2022 01:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231163AbiIIIPO (ORCPT + 99 others); Fri, 9 Sep 2022 04:15:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbiIIIPJ (ORCPT ); Fri, 9 Sep 2022 04:15:09 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4EF6BCCE; Fri, 9 Sep 2022 01:15:07 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MP7z83tTQzHngR; Fri, 9 Sep 2022 16:13:08 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 16:15:05 +0800 Received: from [10.174.179.24] (10.174.179.24) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 16:15:04 +0800 Subject: Re: [PATCH] mm/memcontrol: use kstrtobool for swapaccount param parsing To: Michal Hocko , Andrew Morton References: <20220908083452.2844125-1-liushixin2@huawei.com> <20220908150248.85fff32bf275844f0927a856@linux-foundation.org> CC: Jonathan Corbet , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , , , , , Kefeng Wang From: Liu Shixin Message-ID: Date: Fri, 9 Sep 2022 16:15:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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.