Skip to contentSkip to conversation

Fix ordering of args for list_add

Cluster-devel Steven Whitehouse 1 participant 1 message Jun 2, 2008 GFS2 file system

lore
Share & tools
lore
#0 lore raw

From 9b6a76f99b73875150eaee554f1dbac5702d4e83 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Mon, 2 Jun 2008 09:08:47 +0100
Subject: [PATCH] [GFS2] Fix ordering of args for list_add

The patch to remove lock_nolock managed to get the arguments of this list_add backwards. This fixes it.

fs/gfs2/locking.c +1 -1
index a4a367a..523243a 100644
@@ -163,7 +163,7 @@ retry:
 	mutex_lock(&lmh_lock);
 
 	if (list_empty(&nolock_proto.lw_list))
-		list_add(&lmh_list, &nolock_proto.lw_list);
+		list_add(&nolock_proto.lw_list, &lmh_list);
 
 	found = 0;
 	list_for_each_entry(lw, &lmh_list, lw_list) {
Signature · 1 line
1.5.1.2