Re: [PATCH v2 2/2] mm: Covert sysfs input to bool using kstrtobool()

From: Matthew Wilcox
Date: Tue Apr 26 2022 - 13:24:59 EST


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 <jvgediya@xxxxxxxxxxxxx>

Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>