Skip to contentSkip to conversation

ocfs2: dlm: remove redundant code

PATCH New Junxiao Bi 1 participant 1 message Dec 30, 2015 OCFS2

lore
Share & tools
lore

Junxiao Bi

author
#0 lore raw

PATCH 1/1 ocfs2: dlm: remove redundant code

Found this when do patch review, remove to make it clear and save a little cpu time.

---
 fs/ocfs2/dlm/dlmrecovery.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
fs/ocfs2/dlm/dlmrecovery.c +1 -5
index 9e4f862d20fe..42cac5f01a96 100644
@@ -2450,11 +2450,7 @@ static void __dlm_hb_node_down(struct dlm_ctxt *dlm, int idx)
 	 * perhaps later we can genericize this for other waiters. */
 	wake_up(&dlm->migration_wq);
 
-	if (test_bit(idx, dlm->recovery_map))
-		mlog(0, "domain %s, node %u already added "
-		     "to recovery map!\n", dlm->name, idx);
-	else
-		set_bit(idx, dlm->recovery_map);
+	set_bit(idx, dlm->recovery_map);
 }
 
 void dlm_hb_node_down_cb(struct o2nm_node *node, int idx, void *data)
Signature · 1 line
1.7.9.5