Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162017AbbKTElI (ORCPT ); Thu, 19 Nov 2015 23:41:08 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59750 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161909AbbKTElG (ORCPT ); Thu, 19 Nov 2015 23:41:06 -0500 Date: Thu, 19 Nov 2015 20:41:04 -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: <20151120044104.GA10693@kroah.com> References: <1447959171-20749-1-git-send-email-tj@kernel.org> <1447959171-20749-3-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447959171-20749-3-git-send-email-tj@kernel.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: 874 Lines: 21 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 -- 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/