cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [GFS2 PATCH] GFS2: Remove unnecessary if
       [not found] <1933320036.21474733.1441202466266.JavaMail.zimbra@redhat.com>
@ 2015-09-02 14:01 ` Bob Peterson
  0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2015-09-02 14:01 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

This patch removes an unnecessary if in function gfs2_glock_put.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
---
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index ae3f846..9bd1244 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -170,8 +170,7 @@ void gfs2_glock_put(struct gfs2_glock *gl)
 
 	gfs2_glock_remove_from_lru(gl);
 	spin_unlock(&gl->gl_lockref.lock);
-	if (gl->gl_node.next != NULL)
-		rhashtable_remove_fast(&gl_hash_table, &gl->gl_node, ht_parms);
+	rhashtable_remove_fast(&gl_hash_table, &gl->gl_node, ht_parms);
 	GLOCK_BUG_ON(gl, !list_empty(&gl->gl_holders));
 	GLOCK_BUG_ON(gl, mapping && mapping->nrpages);
 	trace_gfs2_glock_put(gl);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-02 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1933320036.21474733.1441202466266.JavaMail.zimbra@redhat.com>
2015-09-02 14:01 ` [Cluster-devel] [GFS2 PATCH] GFS2: Remove unnecessary if Bob Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).