aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/main.c')
-rw-r--r--fs/gfs2/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c
index 6e8a59809abf..e2bffae683cc 100644
--- a/fs/gfs2/main.c
+++ b/fs/gfs2/main.c
@@ -27,8 +27,7 @@
27static void gfs2_init_inode_once(void *foo, struct kmem_cache *cachep, unsigned long flags) 27static 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
39static void gfs2_init_glock_once(void *foo, struct kmem_cache *cachep, unsigned long flags) 38static 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);