Re: [PATCH 2/7] kernfs: implement kernfs_walk_and_get()
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 netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/7] kernfs: implement kernfs_walk_and_get()
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? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/7] kernfs: implement kernfs_walk_and_get()
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 netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html