Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935199AbbKTVl7 (ORCPT ); Fri, 20 Nov 2015 16:41:59 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:46483 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759180AbbKTVl4 (ORCPT ); Fri, 20 Nov 2015 16:41:56 -0500 Date: Fri, 20 Nov 2015 13:41:55 -0800 From: Greg Kroah-Hartman To: Tejun Heo Cc: davem@davemloft.net, pablo@netfilter.org, kaber@trash.net, kadlec@blackhole.kfki.hu, lizefan@huawei.com, hannes@cmpxchg.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, daniel@iogearbox.net, daniel.wagner@bmw-carit.de, nhorman@tuxdriver.com Subject: Re: [PATCH 2/7] kernfs: implement kernfs_walk_and_get() Message-ID: <20151120214155.GB21590@kroah.com> References: <1447959171-20749-1-git-send-email-tj@kernel.org> <1447959171-20749-3-git-send-email-tj@kernel.org> <20151120044104.GA10693@kroah.com> <20151120211254.GE1574@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151120211254.GE1574@mtj.duckdns.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 30 On Fri, Nov 20, 2015 at 04:12:54PM -0500, Tejun Heo wrote: > On Thu, Nov 19, 2015 at 08:41:04PM -0800, Greg Kroah-Hartman wrote: > > On Thu, Nov 19, 2015 at 01:52:46PM -0500, Tejun Heo wrote: > > > Implement kernfs_walk_and_get() which is similar to > > > kernfs_find_and_get() but can walk a path instead of just a name. > > > > > > v2: Use strlcpy() instead of strlen() + memcpy() as suggested by > > > David. > > > > > > Signed-off-by: Tejun Heo > > > Cc: Greg Kroah-Hartman > > > Cc: David Miller > > > --- > > > fs/kernfs/dir.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ > > > include/linux/kernfs.h | 12 ++++++++++++ > > > 2 files changed, 58 insertions(+) > > > > Acked-by: Greg Kroah-Hartman > > Greg, would it be okay to route this one through either cgroup or net > tree? Either is fine with me, whatever works best for you. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/