diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/locking/dlm/sysfs.c | 2 | ||||
-rw-r--r-- | fs/gfs2/main.c | 6 | ||||
-rw-r--r-- | fs/gfs2/sys.c | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/fs/gfs2/locking/dlm/sysfs.c b/fs/gfs2/locking/dlm/sysfs.c index 4746b884662d..d9fe3ca40e18 100644 --- a/fs/gfs2/locking/dlm/sysfs.c +++ b/fs/gfs2/locking/dlm/sysfs.c | |||
@@ -190,7 +190,6 @@ static struct kobj_type gdlm_ktype = { | |||
190 | }; | 190 | }; |
191 | 191 | ||
192 | static struct kset gdlm_kset = { | 192 | static struct kset gdlm_kset = { |
193 | .subsys = &kernel_subsys, | ||
194 | .kobj = {.name = "lock_dlm",}, | 193 | .kobj = {.name = "lock_dlm",}, |
195 | .ktype = &gdlm_ktype, | 194 | .ktype = &gdlm_ktype, |
196 | }; | 195 | }; |
@@ -225,6 +224,7 @@ int gdlm_sysfs_init(void) | |||
225 | { | 224 | { |
226 | int error; | 225 | int error; |
227 | 226 | ||
227 | kobj_set_kset_s(&gdlm_kset, kernel_subsys); | ||
228 | error = kset_register(&gdlm_kset); | 228 | error = kset_register(&gdlm_kset); |
229 | if (error) | 229 | if (error) |
230 | printk("lock_dlm: cannot register kset %d\n", error); | 230 | printk("lock_dlm: cannot register kset %d\n", error); |
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index c4bb374eaf92..e460487c0557 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -27,8 +27,7 @@ | |||
27 | static void gfs2_init_inode_once(void *foo, struct kmem_cache *cachep, unsigned long flags) | 27 | static void gfs2_init_inode_once(void *foo, struct kmem_cache *cachep, unsigned long flags) |
28 | { | 28 | { |
29 | struct gfs2_inode *ip = foo; | 29 | struct gfs2_inode *ip = foo; |
30 | if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == | 30 | if (flags & SLAB_CTOR_CONSTRUCTOR) { |
31 | SLAB_CTOR_CONSTRUCTOR) { | ||
32 | inode_init_once(&ip->i_inode); | 31 | inode_init_once(&ip->i_inode); |
33 | spin_lock_init(&ip->i_spin); | 32 | spin_lock_init(&ip->i_spin); |
34 | init_rwsem(&ip->i_rw_mutex); | 33 | init_rwsem(&ip->i_rw_mutex); |
@@ -39,8 +38,7 @@ static void gfs2_init_inode_once(void *foo, struct kmem_cache *cachep, unsigned | |||
39 | static void gfs2_init_glock_once(void *foo, struct kmem_cache *cachep, unsigned long flags) | 38 | static void gfs2_init_glock_once(void *foo, struct kmem_cache *cachep, unsigned long flags) |
40 | { | 39 | { |
41 | struct gfs2_glock *gl = foo; | 40 | struct gfs2_glock *gl = foo; |
42 | if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == | 41 | if (flags & SLAB_CTOR_CONSTRUCTOR) { |
43 | SLAB_CTOR_CONSTRUCTOR) { | ||
44 | INIT_HLIST_NODE(&gl->gl_list); | 42 | INIT_HLIST_NODE(&gl->gl_list); |
45 | spin_lock_init(&gl->gl_spin); | 43 | spin_lock_init(&gl->gl_spin); |
46 | INIT_LIST_HEAD(&gl->gl_holders); | 44 | INIT_LIST_HEAD(&gl->gl_holders); |
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index d01f9f0fda26..c26c21b53c19 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c | |||
@@ -222,7 +222,6 @@ static struct kobj_type gfs2_ktype = { | |||
222 | }; | 222 | }; |
223 | 223 | ||
224 | static struct kset gfs2_kset = { | 224 | static struct kset gfs2_kset = { |
225 | .subsys = &fs_subsys, | ||
226 | .kobj = {.name = "gfs2"}, | 225 | .kobj = {.name = "gfs2"}, |
227 | .ktype = &gfs2_ktype, | 226 | .ktype = &gfs2_ktype, |
228 | }; | 227 | }; |
@@ -554,6 +553,7 @@ int gfs2_sys_init(void) | |||
554 | { | 553 | { |
555 | gfs2_sys_margs = NULL; | 554 | gfs2_sys_margs = NULL; |
556 | spin_lock_init(&gfs2_sys_margs_lock); | 555 | spin_lock_init(&gfs2_sys_margs_lock); |
556 | kobj_set_kset_s(&gfs2_kset, fs_subsys); | ||
557 | return kset_register(&gfs2_kset); | 557 | return kset_register(&gfs2_kset); |
558 | } | 558 | } |
559 | 559 | ||