sysfs, kernfs: introduce sysfs_root_sd
Currently, it's assumed that there's a single kernfs hierarchy in the system anchored at sysfs_root which is defined as a global struct. To allow other users of kernfs, this will be made dynamic. Introduce a new global variable sysfs_root_sd which points to &sysfs_root and convert all &sysfs_root users. This patch doesn't introduce any behavior difference. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
9e30cc9595
commit
061447a496
@@ -28,7 +28,7 @@ struct sysfs_super_info {
|
||||
const void *ns;
|
||||
};
|
||||
#define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info))
|
||||
extern struct sysfs_dirent sysfs_root;
|
||||
extern struct sysfs_dirent *sysfs_root_sd;
|
||||
extern struct kmem_cache *sysfs_dir_cachep;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user