Thread (20 messages) 20 messages, 5 authors, 2015-11-20

Re: [PATCH 2/7] kernfs: implement kernfs_walk_and_get()

From: Tejun Heo <tj@kernel.org>
Date: 2015-11-20 21:13:14
Also in: cgroups, lkml, netfilter-devel

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:
quoted
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 <tj@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: David Miller <davem@davemloft.net>
---
 fs/kernfs/dir.c        | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/kernfs.h | 12 ++++++++++++
 2 files changed, 58 insertions(+)
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Greg, would it be okay to route this one through either cgroup or net
tree?

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help