diff options
author | Tejun Heo <tj@kernel.org> | 2013-11-28 14:54:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-29 21:16:08 -0500 |
commit | fa736a951e456b996a76826ba78ff974414c3b55 (patch) | |
tree | 2ba6b9289163b684e41f5efb95c92144b12e2c86 /fs/kernfs/kernfs-internal.h | |
parent | 4b93dc9b1c684d0587fe44d36bbfdf45bd3bea9d (diff) |
sysfs, kernfs: move mount core code to fs/kernfs/mount.c
Move core mount code to fs/kernfs/mount.c. The respective
declarations in fs/sysfs/sysfs.h are moved to
fs/kernfs/kernfs-internal.h.
This is pure relocation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
-rw-r--r-- | fs/kernfs/kernfs-internal.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h index 0d949885389d..ced0d6dadc7d 100644 --- a/fs/kernfs/kernfs-internal.h +++ b/fs/kernfs/kernfs-internal.h | |||
@@ -134,6 +134,28 @@ struct sysfs_addrm_cxt { | |||
134 | #include "../sysfs/sysfs.h" | 134 | #include "../sysfs/sysfs.h" |
135 | 135 | ||
136 | /* | 136 | /* |
137 | * mount.c | ||
138 | */ | ||
139 | struct sysfs_super_info { | ||
140 | /* | ||
141 | * The root associated with this super_block. Each super_block is | ||
142 | * identified by the root and ns it's associated with. | ||
143 | */ | ||
144 | struct kernfs_root *root; | ||
145 | |||
146 | /* | ||
147 | * Each sb is associated with one namespace tag, currently the network | ||
148 | * namespace of the task which mounted this sysfs instance. If multiple | ||
149 | * tags become necessary, make the following an array and compare | ||
150 | * sysfs_dirent tag against every entry. | ||
151 | */ | ||
152 | const void *ns; | ||
153 | }; | ||
154 | #define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info)) | ||
155 | |||
156 | extern struct kmem_cache *sysfs_dir_cachep; | ||
157 | |||
158 | /* | ||
137 | * inode.c | 159 | * inode.c |
138 | */ | 160 | */ |
139 | struct inode *sysfs_get_inode(struct super_block *sb, struct sysfs_dirent *sd); | 161 | struct inode *sysfs_get_inode(struct super_block *sb, struct sysfs_dirent *sd); |