Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.24-git2 /fs/namespace.c

Filename:/fs/namespace.c
Lines Added:5
Lines Deleted:6
Also changed in: (Previous) 2.6.24-git1  2.6.24  2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5 
(Following) 2.6.24-git3  2.6.24-git4  2.6.24-git5  2.6.24-git6  2.6.24-git7  2.6.24-git8 

Location
[  2.6.24-git2
  [  fs
     o  namespace.c

Patch

diff --git a/fs/namespace.c b/fs/namespace.c
index 0608388..61bf376 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -41,8 +41,8 @@ static struct kmem_cache *mnt_cache __read_mostly;
 static struct rw_semaphore namespace_sem;
 
 /* /sys/fs */
-decl_subsys(fs, NULL, NULL);
-EXPORT_SYMBOL_GPL(fs_subsys);
+struct kobject *fs_kobj;
+EXPORT_SYMBOL_GPL(fs_kobj);
 
 static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry)
 {
@@ -1861,10 +1861,9 @@ void __init mnt_init(void)
    if (err)
       printk(KERN_WARNING "%s: sysfs_init error: %d\n",
          __FUNCTION__, err);
-   err = subsystem_register(&fs_subsys);
-   if (err)
-      printk(KERN_WARNING "%s: subsystem_register error: %d\n",
-         __FUNCTION__, err);
+   fs_kobj = kobject_create_and_add("fs", NULL);
+   if (!fs_kobj)
+      printk(KERN_WARNING "%s: kobj create error\n", __FUNCTION__);
    init_rootfs();
    init_mount_tree();
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.