Re: [PATCH] kernfs: move struct kernfs_root out of the public view.
From: Tejun Heo
Date: Tue Feb 22 2022 - 12:20:52 EST
On Tue, Feb 22, 2022 at 08:07:13AM +0100, Greg Kroah-Hartman wrote:
> There is no need to have struct kernfs_root be part of kernfs.h for
> the whole kernel to see and poke around it. Move it internal to kernfs
> code and provide a helper function, kernfs_root_to_node(), to handle the
> one field that kernfs users were directly accessing from the structure.
>
> Cc: Tejun Heo <tj@xxxxxxxxxx>
> Cc: Imran Khan <imran.f.khan@xxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Acked-by: Tejun Heo <tj@xxxxxxxxxx>
Thanks.
--
tejun