Lines Matching defs:lc

792 	struct ocfs2_live_connection *lc = conn->cc_private;
793 complete(&lc->oc_sync_wait);
800 struct ocfs2_live_connection *lc = conn->cc_private;
809 wait_for_completion(&lc->oc_sync_wait);
824 struct ocfs2_live_connection *lc = conn->cc_private;
835 wait_for_completion(&lc->oc_sync_wait);
851 struct ocfs2_live_connection *lc = conn->cc_private;
853 &lc->oc_version_lksb, VERSION_LOCK);
858 struct ocfs2_live_connection *lc = conn->cc_private;
859 return sync_unlock(conn, &lc->oc_version_lksb, VERSION_LOCK);
876 struct ocfs2_live_connection *lc = conn->cc_private;
884 lc->oc_version_lksb.sb_lvbptr = lc->oc_lvb;
890 version_to_lvb(&running_proto, lc->oc_lvb);
896 lvb_to_version(lc->oc_lvb, &pv);
929 struct ocfs2_live_connection *lc = conn->cc_private;
934 atomic_set(&lc->oc_this_node, slots[i].nodeid);
938 lc->oc_our_slot = our_slot;
939 wake_up(&lc->oc_wait);
961 struct ocfs2_live_connection *lc;
966 lc = kzalloc_obj(struct ocfs2_live_connection);
967 if (!lc)
970 init_waitqueue_head(&lc->oc_wait);
971 init_completion(&lc->oc_sync_wait);
972 atomic_set(&lc->oc_this_node, 0);
973 conn->cc_private = lc;
974 lc->oc_type = NO_CONTROLD;
990 lc->oc_type = WITH_CONTROLD;
1000 rc = ocfs2_live_connection_attach(conn, lc);
1004 if (lc->oc_type == NO_CONTROLD) {
1010 lc = NULL;
1013 wait_event(lc->oc_wait, (atomic_read(&lc->oc_this_node) > 0));
1027 ocfs2_live_connection_drop(lc);
1028 lc = NULL;
1033 kfree(lc);
1042 struct ocfs2_live_connection *lc = conn->cc_private;
1044 if (lc->oc_type == WITH_CONTROLD)
1046 else if (lc->oc_type == NO_CONTROLD)
1047 rc = atomic_read(&lc->oc_this_node);