Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1649236rwn; Fri, 9 Sep 2022 01:37:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR52xKwKx1lmbK48rP1CL/rkHA6NNDlO73K3NmgxgkDweNWphiRVh3XQpdQm5E2wMLnI9yjs X-Received: by 2002:a05:6512:3e18:b0:498:fd18:8e12 with SMTP id i24-20020a0565123e1800b00498fd188e12mr364003lfv.249.1662712645296; Fri, 09 Sep 2022 01:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662712645; cv=none; d=google.com; s=arc-20160816; b=LxotsEFjTUqs/4rDs1Vhi7GPoEmohYf8w3JnOi9Q8vfub4e8u3WxOpnSr78QsrT6DQ ltHmdrw1s7Tv5HEMbunCG/Ip2UiYq9n4QMI2jMTHDhFmo2L6gdjGzgxx4WOZ+NbhwaPb Il9pMeYSYbIJsE5Wi5R1faxLdcQswaZg6njrzUWr8rbRs4Ob6csjNn5rOzb7VHZJA5D3 GEUw+4naUAlWD8RJsJcm/nKnSRRAjUGFcwEXjCXNvaZQ6cq1wS6jAhWMaCWd3RRoJfTW 1XEvI44ZQy63qdtTghYz7gBWlv2UzGdl0hvKmhsIDrwV6FHbYlOEOB76+847h5O3uHYe hmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WXTY9+MF108rC5N0qRIMHJTyEWfCXxraJ9r3p5CaavA=; b=bd0CixC3Eg1Zq4DpgM2vp2QVJTngyhhXF+E7L/4eSdoIPWmmxiMvEURgIkZmFC+EtL bfv0LP+wadwRlP+ciEJy+inltnR7Z7kC3gr2aYESMqQwH8yAC5+Hmc2DCq/pPbQVWa6Z 6vpb+6Aoa5+tbSZTmK2qMiFjqFSv7nfoik6aBRs7gJV6J3cdOkPm+Y9Dl0dqmwdQ9FLj BXLT2XRmdqYML7rxDeklGNqlmalejwROEyxsozL37bz8TzSpaasWAesifOeXuwHIeXW6 RIL2DonKI28VVXvwmFqr5Q4EhyV27qA/bN4IKVVAzsc6RB4MHdrsF6PjNqmsJJAMR3uo 8ptA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="PAsRjY//"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a2e8295000000b00261d469688fsi187376ljg.198.2022.09.09.01.36.53; Fri, 09 Sep 2022 01:37:25 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b="PAsRjY//"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231903AbiIIHuo (ORCPT + 99 others); Fri, 9 Sep 2022 03:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231867AbiIIHuQ (ORCPT ); Fri, 9 Sep 2022 03:50:16 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 631EE1395B9; Fri, 9 Sep 2022 00:45:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 89B0422918; Fri, 9 Sep 2022 07:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1662709049; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WXTY9+MF108rC5N0qRIMHJTyEWfCXxraJ9r3p5CaavA=; b=PAsRjY//6ci6tMdc1AbSkVT1/NENOZTJAYbDmM/NGwbPB9Ex8BRJjtAD3qTEQgwNmwS7Sp 85xLjm5S2Qb4Z+PRXwoYxHh3r/+n8crnkzaGqIGc0GZBNa68JFMKROU+hfksQTD0opQHMq YMn/VvNQEOBRlZW1X6lJKPVJc1wShuE= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 682F813A93; Fri, 9 Sep 2022 07:37:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bdCnFzntGmO+MwAAMHmgww (envelope-from ); Fri, 09 Sep 2022 07:37:29 +0000 Date: Fri, 9 Sep 2022 09:37:28 +0200 From: Michal Hocko To: Andrew Morton Cc: Liu Shixin , Jonathan Corbet , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Kefeng Wang Subject: Re: [PATCH] mm/memcontrol: use kstrtobool for swapaccount param parsing Message-ID: References: <20220908083452.2844125-1-liushixin2@huawei.com> <20220908150248.85fff32bf275844f0927a856@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220908150248.85fff32bf275844f0927a856@linux-foundation.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. -- Michal Hocko SUSE Labs