]> git.openpandora.org Git - pandora-kernel.git/commitdiff
sysfs, kernfs: move mount core code to fs/kernfs/mount.c
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:44 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 02:16:08 +0000 (18:16 -0800)
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>
fs/kernfs/kernfs-internal.h
fs/kernfs/mount.c
fs/sysfs/mount.c
fs/sysfs/sysfs.h

index 0d949885389dac5b1c8b39b84fc8bbff4c5033c0..ced0d6dadc7dec972562b5d286dfde5ee388813f 100644 (file)
@@ -133,6 +133,28 @@ struct sysfs_addrm_cxt {
 
 #include "../sysfs/sysfs.h"
 
+/*
+ * mount.c
+ */
+struct sysfs_super_info {
+       /*
+        * The root associated with this super_block.  Each super_block is
+        * identified by the root and ns it's associated with.
+        */
+       struct kernfs_root      *root;
+
+       /*
+        * Each sb is associated with one namespace tag, currently the network
+        * namespace of the task which mounted this sysfs instance.  If multiple
+        * tags become necessary, make the following an array and compare
+        * sysfs_dirent tag against every entry.
+        */
+       const void              *ns;
+};
+#define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info))
+
+extern struct kmem_cache *sysfs_dir_cachep;
+
 /*
  * inode.c
  */
Simple merge
Simple merge
Simple merge