aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2017-06-05 14:14:16 -0400
committerBob Peterson <rpeterso@redhat.com>2017-06-12 15:39:12 -0400
commitdf68f20f56084cffd15add2d7652bcdfb38cd875 (patch)
treeb48fc5300e68d835305636f771431bf8826a7cda
parentd87d62b75dfd8d33dc1baf0c4d3792788b554661 (diff)
GFS2: Remove gl_list from glock structure
The gl_list is no longer used nor needed in the glock structure, so this patch eliminates it. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
-rw-r--r--fs/gfs2/incore.h1
-rw-r--r--fs/gfs2/main.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index b7cf65d13561..097adb1b3188 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -336,7 +336,6 @@ enum {
336}; 336};
337 337
338struct gfs2_glock { 338struct gfs2_glock {
339 struct hlist_bl_node gl_list;
340 unsigned long gl_flags; /* GLF_... */ 339 unsigned long gl_flags; /* GLF_... */
341 struct lm_lockname gl_name; 340 struct lm_lockname gl_name;
342 341
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c
index 67d1fc4668f7..0a89e6f7a314 100644
--- a/fs/gfs2/main.c
+++ b/fs/gfs2/main.c
@@ -52,7 +52,6 @@ static void gfs2_init_glock_once(void *foo)
52{ 52{
53 struct gfs2_glock *gl = foo; 53 struct gfs2_glock *gl = foo;
54 54
55 INIT_HLIST_BL_NODE(&gl->gl_list);
56 spin_lock_init(&gl->gl_lockref.lock); 55 spin_lock_init(&gl->gl_lockref.lock);
57 INIT_LIST_HEAD(&gl->gl_holders); 56 INIT_LIST_HEAD(&gl->gl_holders);
58 INIT_LIST_HEAD(&gl->gl_lru); 57 INIT_LIST_HEAD(&gl->gl_lru);