Lines Matching refs:lc

803 	struct ocfs2_live_connection *lc = conn->cc_private;
804 complete(&lc->oc_sync_wait);
811 struct ocfs2_live_connection *lc = conn->cc_private;
820 wait_for_completion(&lc->oc_sync_wait);
835 struct ocfs2_live_connection *lc = conn->cc_private;
846 wait_for_completion(&lc->oc_sync_wait);
862 struct ocfs2_live_connection *lc = conn->cc_private;
864 &lc->oc_version_lksb, VERSION_LOCK);
869 struct ocfs2_live_connection *lc = conn->cc_private;
870 return sync_unlock(conn, &lc->oc_version_lksb, VERSION_LOCK);
887 struct ocfs2_live_connection *lc = conn->cc_private;
895 lc->oc_version_lksb.sb_lvbptr = lc->oc_lvb;
901 version_to_lvb(&running_proto, lc->oc_lvb);
907 lvb_to_version(lc->oc_lvb, &pv);
940 struct ocfs2_live_connection *lc = conn->cc_private;
945 atomic_set(&lc->oc_this_node, slots[i].nodeid);
949 lc->oc_our_slot = our_slot;
950 wake_up(&lc->oc_wait);
972 struct ocfs2_live_connection *lc;
977 lc = kzalloc(sizeof(struct ocfs2_live_connection), GFP_KERNEL);
978 if (!lc)
981 init_waitqueue_head(&lc->oc_wait);
982 init_completion(&lc->oc_sync_wait);
983 atomic_set(&lc->oc_this_node, 0);
984 conn->cc_private = lc;
985 lc->oc_type = NO_CONTROLD;
1001 lc->oc_type = WITH_CONTROLD;
1011 rc = ocfs2_live_connection_attach(conn, lc);
1015 if (lc->oc_type == NO_CONTROLD) {
1023 wait_event(lc->oc_wait, (atomic_read(&lc->oc_this_node) > 0));
1037 ocfs2_live_connection_drop(lc);
1038 lc = NULL;
1043 kfree(lc);
1052 struct ocfs2_live_connection *lc = conn->cc_private;
1054 if (lc->oc_type == WITH_CONTROLD)
1056 else if (lc->oc_type == NO_CONTROLD)
1057 rc = atomic_read(&lc->oc_this_node);