Skip to contentSkip to conversation

GFS2: Remove gl_list from glock structure

PATCH New Bob Peterson 2 participants 2 messages Jun 5, 2017 – Jun 7, 2017 1 message not in the archive GFS2 file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 GFS2: Remove gl_list from glock structure

Hi,

The gl_list is no longer used nor needed in the glock structure, so this patch eliminates it.

---

fs/gfs2/incore.h +0 -1
index b7cf65d..097adb1 100644
@@ -336,7 +336,6 @@ enum {
 };
 
 struct gfs2_glock {
-	struct hlist_bl_node gl_list;
 	unsigned long gl_flags;		/* GLF_... */
 	struct lm_lockname gl_name;
 
fs/gfs2/main.c +0 -1
index 67d1fc4..0a89e6f 100644
@@ -52,7 +52,6 @@ static void gfs2_init_glock_once(void *foo)
 {
 	struct gfs2_glock *gl = foo;
 
-	INIT_HLIST_BL_NODE(&gl->gl_list);
 	spin_lock_init(&gl->gl_lockref.lock);
 	INIT_LIST_HEAD(&gl->gl_holders);
 	INIT_LIST_HEAD(&gl->gl_lru);
#2 lore raw

PATCH 1/1 GFS2: Remove gl_list from glock structure

Hi,

Steve.

Quoted 32 lines · Bob Peterson

Hi,

The gl_list is no longer used nor needed in the glock structure, so this patch eliminates it.

---

fs/gfs2/incore.h +0 -1
index b7cf65d..097adb1 100644
@@ -336,7 +336,6 @@ enum {
  };
 
  struct gfs2_glock {
-	struct hlist_bl_node gl_list;
  	unsigned long gl_flags;		/* GLF_... */
  	struct lm_lockname gl_name;
 
fs/gfs2/main.c +0 -1
index 67d1fc4..0a89e6f 100644
@@ -52,7 +52,6 @@ static void gfs2_init_glock_once(void *foo)
  {
  	struct gfs2_glock *gl = foo;
 
-	INIT_HLIST_BL_NODE(&gl->gl_list);
  	spin_lock_init(&gl->gl_lockref.lock);
  	INIT_LIST_HEAD(&gl->gl_holders);
  	INIT_LIST_HEAD(&gl->gl_lru);