Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4460253ioa; Wed, 27 Apr 2022 04:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynh8FAm8PtKMtAFT8LshHtcn16+YZiwxYAms0pL7TYHO7abboZqDgMZ+sadPU0mKpxpOAt X-Received: by 2002:a17:902:b193:b0:158:c040:5cf8 with SMTP id s19-20020a170902b19300b00158c0405cf8mr28314911plr.146.1651058979108; Wed, 27 Apr 2022 04:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651058979; cv=none; d=google.com; s=arc-20160816; b=bqm00aQlsesMEytN5CeKGIkFndBgMSEHuqtr4yszBSJqIyiIMC2G/pmiFFIyhruuX0 vKWAXWEt9cwRKRY/3P2u9DnW+4aU+Q9ahMlAFtHaCnQdbT1X9TtzHyQO+tgalnsnqmMN rFQL0J/NMTd0n/ghGAZj/gHNVtcTK++vfqWzlOQg3m2xi74OPXvoYJm99BPecmkxQ9WQ 0Duqgh5UxyQtqMlFDXwurVfKekxBhObELKYat+u/2cRVXQFCoWz36bPRBZCLaPcNzblT djfzfH2dkYZbDhZsUkYNVS+NR+tDv+A0QpMRusPHyloXbW9i0XtU/aMY4cy6PhiOnydw 3+NA== 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=vfRkVAtV3G5IkNtoVB8bVNNwfFhVbkwsBLWlhIjDXaE=; b=NdoIV++2oYaEndVj0GJkpJt5bi7oqluFu6ytkfsgPaDnIm/lkgDIv4OFL1j9UfanMz ieWHy8TO8Dr+v30pbTl1CHtYjoGfSmpzpcCEFZtZ8/p+DwiFK4cw+w5lkSzDAOnqJ209 rA3LKWqTwqnUqw3cfRmJGRRY4cjTBsV1jtAiBzdcuQrr5//aqhd7T77CbRSE3J+v6dKC tUE6AoAfq/fNt0Ei3e+SGpHmQC2idpzYB5y9yvNGgoUwUCOYysmYyoRRXpl2yOnSCECO qGYxDI/DNmUWp4YOaqJiZJ9YY68rCaClJ1YS0o230Wrc7KqzZbfm4po5Ds3Km7pwYOaI 0QEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HMELUTbD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l71-20020a63914a000000b003ab3289a7a1si1245008pge.6.2022.04.27.04.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:29:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HMELUTbD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9AD833B1C6; Wed, 27 Apr 2022 03:17:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241337AbiDZR2D (ORCPT + 99 others); Tue, 26 Apr 2022 13:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240407AbiDZR2A (ORCPT ); Tue, 26 Apr 2022 13:28:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F0DE6EC53 for ; Tue, 26 Apr 2022 10:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vfRkVAtV3G5IkNtoVB8bVNNwfFhVbkwsBLWlhIjDXaE=; b=HMELUTbDvYMdOqZ/dwe55fiJhS tXNK6SdTCKhBcioTz3H1USb8N/qgJERdxRW2GTu4OcDRngvl13JPkFCv3cTgtS6OKYIPDiM14Qto3 aourlpBKKy7SRqKCMk+z8GSfqouLMiBAPtRK9QkwR04DL88LUS/rtxQl5M7D+/qxvvQjb+gHglHhB +PUlHsQB5X8YyIshDqwRRg7u1WAguYV8M068obisavqAnryh1A9Mo6uhD+9hqIFol57dp1/trEK3w b+JZCYA3LhpIiuIV9DtXwKDckwG2ZFcnEL8Il6KVa1BnypH6IDYEbXSQUoDDMIK0VICFaTr8AluVF jMudo1CQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1njOvi-009qwL-OH; Tue, 26 Apr 2022 17:24:50 +0000 Date: Tue, 26 Apr 2022 18:24:50 +0100 From: Matthew Wilcox To: Jagdish Gediya Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jonathan.Cameron@huawei.com, adobriyan@gmail.com, akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, rf@opensource.cirrus.com, pmladek@suse.com, ying.huang@intel.com, dave.hansen@intel.com Subject: Re: [PATCH v2 2/2] mm: Covert sysfs input to bool using kstrtobool() Message-ID: References: <20220426170040.65487-1-jvgediya@linux.ibm.com> <20220426170040.65487-2-jvgediya@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220426170040.65487-2-jvgediya@linux.ibm.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Tue, Apr 26, 2022 at 10:30:40PM +0530, Jagdish Gediya wrote: > Sysfs input conversion to corrosponding bool value e.g. "false" or "0" > to false, "true" or "1" to true are currently handled through strncmp > at multiple places. Use kstrtobool() to convert sysfs input to bool > value. > > Signed-off-by: Jagdish Gediya Reviewed-by: Matthew Wilcox (Oracle)