Lines Matching refs:active_stack
49 static struct ocfs2_stack_plugin *active_stack; variable
53 return !strcmp(active_stack->sp_name, OCFS2_STACK_PLUGIN_O2CB); in ocfs2_is_o2cb_active()
88 if (active_stack) { in ocfs2_stack_driver_request()
93 if (!strcmp(active_stack->sp_name, plugin_name)) in ocfs2_stack_driver_request()
106 active_stack = p; in ocfs2_stack_driver_request()
112 active_stack->sp_count++; in ocfs2_stack_driver_request()
167 BUG_ON(active_stack == NULL); in ocfs2_stack_driver_put()
168 BUG_ON(active_stack->sp_count == 0); in ocfs2_stack_driver_put()
170 active_stack->sp_count--; in ocfs2_stack_driver_put()
171 if (!active_stack->sp_count) { in ocfs2_stack_driver_put()
172 module_put(active_stack->sp_owner); in ocfs2_stack_driver_put()
173 active_stack = NULL; in ocfs2_stack_driver_put()
209 BUG_ON(plugin == active_stack); in ocfs2_stack_glue_unregister()
258 return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, in ocfs2_dlm_lock()
269 return active_stack->sp_ops->dlm_unlock(conn, lksb, flags); in ocfs2_dlm_unlock()
275 return active_stack->sp_ops->lock_status(lksb); in ocfs2_dlm_lock_status()
281 return active_stack->sp_ops->lvb_valid(lksb); in ocfs2_dlm_lvb_valid()
287 return active_stack->sp_ops->lock_lvb(lksb); in ocfs2_dlm_lvb()
293 active_stack->sp_ops->dump_lksb(lksb); in ocfs2_dlm_dump_lksb()
299 return active_stack && active_stack->sp_ops->plock; in ocfs2_stack_supports_plocks()
310 WARN_ON_ONCE(active_stack->sp_ops->plock == NULL); in ocfs2_plock()
311 if (active_stack->sp_ops->plock) in ocfs2_plock()
312 return active_stack->sp_ops->plock(conn, ino, file, cmd, fl); in ocfs2_plock()
371 rc = active_stack->sp_ops->connect(new_conn); in ocfs2_cluster_connect()
415 ret = active_stack->sp_ops->disconnect(conn); in ocfs2_cluster_disconnect()
479 return active_stack->sp_ops->this_node(conn, node); in ocfs2_cluster_this_node()
547 if (active_stack) { in ocfs2_active_cluster_plugin_show()
549 active_stack->sp_name); in ocfs2_active_cluster_plugin_show()
592 if (active_stack) { in ocfs2_cluster_stack_store()