ocfs2: Hang the locking proto on the cluster conn and use it in asts.
authorJoel Becker <joel.becker@oracle.com>
Fri, 29 Jan 2010 23:46:23 +0000 (15:46 -0800)
committerJoel Becker <joel.becker@oracle.com>
Fri, 26 Feb 2010 23:41:16 +0000 (15:41 -0800)
commit110946c8fb23c1e1e23312afed0977ad4aa37c95
treea71cc2b0f7819d80426ed0a445f42d4558df99fb
parentc0e4133851ed94c73ee3d34a2f2a245fcd0a60a1
ocfs2: Hang the locking proto on the cluster conn and use it in asts.

With the ocfs2_cluster_connection hanging off of the ocfs2_dlm_lksb, we
have access to it in the ast and bast wrapper functions.  Attach the
ocfs2_locking_protocol to the conn.

Now, instead of refering to a static variable for ast/bast pointers, the
wrappers can look at the connection.  This means different connections
can have different ast/bast pointers, and it reduces the need for the
static pointer.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/stack_o2cb.c
fs/ocfs2/stack_user.c
fs/ocfs2/stackglue.c
fs/ocfs2/stackglue.h