kernfs: move struct kernfs_root out of the public view.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Feb 2022 07:07:13 +0000 (08:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 14:46:34 +0000 (15:46 +0100)
commitf2eb478f2f322217aa642e11c1cc011f99c797e6
treef71c2db5e8a403e2f397c6a5fcaa9556e559e1fa
parentb4ae8c2fb673d2fc60cb8fe645dba4f4db8b0dab
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>
arch/x86/kernel/cpu/resctrl/rdtgroup.c
fs/kernfs/dir.c
fs/kernfs/kernfs-internal.h
fs/sysfs/mount.c
include/linux/kernfs.h
kernel/cgroup/cgroup.c