mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
kernfs: move struct kernfs_root out of the public view.
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: Imran Khan <imran.f.khan@oracle.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20220222070713.3517679-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -185,6 +185,7 @@ struct kernfs_syscall_ops {
|
||||
struct kernfs_root *root);
|
||||
};
|
||||
|
||||
#if 0
|
||||
struct kernfs_root {
|
||||
/* published fields */
|
||||
struct kernfs_node *kn;
|
||||
@@ -202,6 +203,9 @@ struct kernfs_root {
|
||||
wait_queue_head_t deactivate_waitq;
|
||||
struct rw_semaphore kernfs_rwsem;
|
||||
};
|
||||
#endif
|
||||
|
||||
struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root);
|
||||
|
||||
struct kernfs_open_file {
|
||||
/* published fields */
|
||||
|
Reference in New Issue
Block a user