diff options
author | David Teigland <teigland@redhat.com> | 2006-01-16 11:48:01 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-16 15:50:40 +0000 |
commit | fba7b940194465ac7a8f0cdf793959fb5fbb8834 (patch) | |
tree | 132a2af94f6e500f66080ff207f89a878ae1647f /fs | |
parent | b346671fa196abaf82ed3e1842f981209f7887af (diff) | |
download | blackbird-obmc-linux-fba7b940194465ac7a8f0cdf793959fb5fbb8834.tar.gz blackbird-obmc-linux-fba7b940194465ac7a8f0cdf793959fb5fbb8834.zip |
[PATCH] Add fs_subsys to enable filesystems to use sysfs
This creates an "fs" subdirectory in sysfs so that GFS2 (or any other
filesystem, come to that) can make use of sysfs.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namespace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 8bc15b362d23..ce97becff461 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -48,6 +48,10 @@ static int hash_mask __read_mostly, hash_bits __read_mostly; static kmem_cache_t *mnt_cache; static struct rw_semaphore namespace_sem; +/* /sys/fs */ +decl_subsys(fs, NULL, NULL); +EXPORT_SYMBOL_GPL(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 mempages) i--; } while (i); sysfs_init(); + subsystem_register(&fs_subsys); init_rootfs(); init_mount_tree(); } |