Re: [RFC 2/4] cgroup: implement hierarchy limits
From: Roman Gushchin
Date: Wed Aug 02 2017 - 14:55:53 EST
On Wed, Aug 02, 2017 at 11:44:17AM -0700, Tejun Heo wrote:
> Hello, Roman.
>
> Generally looks good to me. One minor nit.
>
> On Wed, Aug 02, 2017 at 05:55:30PM +0100, Roman Gushchin wrote:
> > +static ssize_t cgroup_max_descendants_write(struct kernfs_open_file *of,
> > + char *buf, size_t nbytes, loff_t off)
> > +{
> > + struct cgroup *cgrp;
> > + int descendants;
> > + ssize_t ret;
> > +
> > + buf = strstrip(buf);
> > + if (!strcmp(buf, "max")) {
> > + descendants = INT_MAX;
> > + } else {
> > + ret = kstrtouint(buf, 0, &descendants);
> ^^^^^^^^^^^
> shouldn't this be kstrtoint?
Hi, Tejun!
Of course, it should.
Please, find an updated version below.
Thank you!
Roman
--