Skip to content

Commit

Permalink
[GFS2] Fix ordering of args for list_add
Browse files Browse the repository at this point in the history
The patch to remove lock_nolock managed to get the arguments
of this list_add backwards. This fixes it.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Jun 27, 2008
1 parent 2d81afb commit 8027473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data,
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) {
Expand Down

0 comments on commit 8027473

Please sign in to comment.