From: Miklos Szeredi This patch adds an empty /sys/fs, which filesystems can use. Signed-off-by: Miklos Szeredi Cc: Greg KH Signed-off-by: Andrew Morton --- fs/namespace.c | 5 +++++ include/linux/fs.h | 3 +++ 2 files changed, 8 insertions(+) diff -puN fs/namespace.c~add-sys-fs fs/namespace.c --- 25/fs/namespace.c~add-sys-fs Fri Jan 13 17:35:33 2006 +++ 25-akpm/fs/namespace.c Fri Jan 13 17:35:33 2006 @@ -48,6 +48,10 @@ static int hash_mask __read_mostly, hash static kmem_cache_t *mnt_cache; static struct rw_semaphore namespace_sem; +/* /sys/fs */ +decl_subsys(fs, NULL, NULL); +EXPORT_SYMBOL(fs_subsys); + static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry) { unsigned long tmp = ((unsigned long)mnt / L1_CACHE_BYTES); @@ -1725,6 +1729,7 @@ void __init mnt_init(unsigned long mempa i--; } while (i); sysfs_init(); + subsystem_register(&fs_subsys); init_rootfs(); init_mount_tree(); } diff -puN include/linux/fs.h~add-sys-fs include/linux/fs.h --- 25/include/linux/fs.h~add-sys-fs Fri Jan 13 17:35:33 2006 +++ 25-akpm/include/linux/fs.h Fri Jan 13 17:35:33 2006 @@ -1294,6 +1294,9 @@ extern void mnt_set_mountpoint(struct vf extern int vfs_statfs(struct super_block *, struct kstatfs *); +/* /sys/fs */ +extern struct subsystem fs_subsys; + #define FLOCK_VERIFY_READ 1 #define FLOCK_VERIFY_WRITE 2 _