Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3559161iob; Tue, 17 May 2022 02:40:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkvSIknufP0bO3piwPjHdXHJILj4WrJg4f5iZAqHDcmXn/Muu43vkv3wmsIcxEhMxraurF X-Received: by 2002:a17:907:97d5:b0:6f5:405:ef01 with SMTP id js21-20020a17090797d500b006f50405ef01mr18634349ejc.551.1652780436269; Tue, 17 May 2022 02:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652780436; cv=none; d=google.com; s=arc-20160816; b=XpaBtg3AfGKWPQlJJADYKFSlrlpH4Ya9NYFkA5l5+QvdS2dsHZmEMA0qvKZxEuy/Oy 27FK8GB8TJBhmbQFL2saagygGth7aY1Hb7tRe2o1DgNoMzOU2gt4zaiDQodhmF1j5J2j 6Y/qCGs9j75EhVp4rD/OGw8ms0Ad6tDnQJ3Ng7OZJaFbYQPkA/EUaoq6QK2Bzg/DwZsF QRh3Rc2/5qJVWMoB+Luk7xkXRFHmK01vAHc0rdYXgYpTH2OOpbfKXe9KIQJ90ADjQuKB wjgQrndbnJkt42PZUW4oux7wsmGghkLY+biFus4zRkU0Iw+p/I2zf2JNOhh/tZsSV6mJ DGwg== 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 :dkim-signature; bh=5k0bGOWkmGL1ogvQ/PreqJMh1U1K6c4WBr2eA6nTSAM=; b=rdVgqDd0+7NyExi1xbZ3IsXsvsgXwTdCS60eRtQhg3n1y2cXuFduouIGKfatdiAmGj ulph7+wgFBND0OPKTXA83okh98LHBrOuX9Cau6Fa0L6DZQ84DFtU/BPiB5IykL2jRF9z tsBB6Ge3+CAFiGfHTqxlxrl0ie5RkPgm0CVbrc9efkv85YJEcvXL/uEyFaYqmGAGKQ+G Sc4JWLpVgCA46kkyHCz8pjmseY++XV3skpF1okrQ5K/Uv6BsgmPuSdt2zPGnaImfy/SJ /zlPXIJ2RYzx+pKNSwHxbx3aNca7idqzs1Xda4jVQ6TeQLSn0a6R6qXYZ0DJtwZKWN4S fa6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=k1hgAxLH; dkim=neutral (no key) header.i=@suse.de header.b="Z7Cu/hEg"; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt22-20020a170907729600b006f3d0d3aa1esi2297472ejc.101.2022.05.17.02.40.10; Tue, 17 May 2022 02:40:36 -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.de header.s=susede2_rsa header.b=k1hgAxLH; dkim=neutral (no key) header.i=@suse.de header.b="Z7Cu/hEg"; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233265AbiEQHiS (ORCPT + 99 others); Tue, 17 May 2022 03:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241583AbiEQHg6 (ORCPT ); Tue, 17 May 2022 03:36:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5727048889; Tue, 17 May 2022 00:36:57 -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-out2.suse.de (Postfix) with ESMTPS id 0A34C1FBB6; Tue, 17 May 2022 07:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652773016; 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=5k0bGOWkmGL1ogvQ/PreqJMh1U1K6c4WBr2eA6nTSAM=; b=k1hgAxLHcPwk3vEQCWus51vT4+BvTaLYR+QHOAK3xVmdoQKgPHeTu+DfO+WesNLefN3po0 R9NLCarCPlMgTyosDYGCmIU+OFXfYoedIUeJqf22LVR7R7WTOJIFAY9q5u3r9V4b43Ynpm HwcHrcODHBHUS8nc5lhJa/98sGVBFMo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652773016; 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=5k0bGOWkmGL1ogvQ/PreqJMh1U1K6c4WBr2eA6nTSAM=; b=Z7Cu/hEg/PUSiAGDXraTHHfvdp/4d1ELwywNgsiUNKfH1qhjPTS9AIU7zlSRB73PQws//V lEnTbGxt5LhUgrBA== 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 2B88A13305; Tue, 17 May 2022 07:36:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ueW0BpdQg2LmeQAAMHmgww (envelope-from ); Tue, 17 May 2022 07:36:55 +0000 Date: Tue, 17 May 2022 09:36:53 +0200 From: Oscar Salvador To: Muchun Song Cc: corbet@lwn.net, mike.kravetz@oracle.com, akpm@linux-foundation.org, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, david@redhat.com, masahiroy@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, smuchun@gmail.com Subject: Re: [PATCH v12 2/7] mm: hugetlb_vmemmap: use kstrtobool for hugetlb_vmemmap param parsing Message-ID: References: <20220516102211.41557-1-songmuchun@bytedance.com> <20220516102211.41557-3-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220516102211.41557-3-songmuchun@bytedance.com> 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 Mon, May 16, 2022 at 06:22:06PM +0800, Muchun Song wrote: > Use kstrtobool rather than open coding "on" and "off" parsing in > mm/hugetlb_vmemmap.c, which is more powerful to handle all kinds > of parameters like 'Yy1Nn0' or [oO][NnFf] for "on" and "off". > > Signed-off-by: Muchun Song > Reviewed-by: Mike Kravetz > Acked-by: David Hildenbrand Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs