[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160617181724.GO3262@mtj.duckdns.org>
Date: Fri, 17 Jun 2016 14:17:24 -0400
From: Tejun Heo <tj@...nel.org>
To: Johannes Weiner <hannes@...xchg.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Vladimir Davydov <vdavydov@...tuozzo.com>,
Michal Hocko <mhocko@...e.cz>, Li Zefan <lizefan@...wei.com>,
linux-mm@...ck.org, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH 2/3] cgroup: remove unnecessary 0 check from css_from_id()
On Fri, Jun 17, 2016 at 12:24:27PM -0400, Johannes Weiner wrote:
> css_idr allocation starts at 1, so index 0 will never point to an
> item. css_from_id() currently filters that before asking idr_find(),
> but idr_find() would also just return NULL, so this is not needed.
>
> Signed-off-by: Johannes Weiner <hannes@...xchg.org>
Applied 1-2 to cgroup/for-4.8.
Thanks.
--
tejun
Powered by blists - more mailing lists