[PATCH 01/17] add /sys/fs

From: Miklos Szeredi
Date: Fri Jan 13 2006 - 19:39:52 EST


This patch adds an empty /sys/fs, which filesystems can use.

Signed-off-by: Miklos Szeredi <miklos@xxxxxxxxxx>

Index: linux/include/linux/fs.h
===================================================================
--- linux.orig/include/linux/fs.h 2006-01-13 21:52:18.000000000 +0100
+++ linux/include/linux/fs.h 2006-01-13 22:51:37.000000000 +0100
@@ -1297,6 +1297,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

Index: linux/fs/namespace.c
===================================================================
--- linux.orig/fs/namespace.c 2006-01-13 21:52:16.000000000 +0100
+++ linux/fs/namespace.c 2006-01-13 22:51:37.000000000 +0100
@@ -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();
}

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/