Lines Matching refs:plugin
162 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_register() argument
167 if (!ocfs2_stack_lookup(plugin->sp_name)) { in ocfs2_stack_glue_register()
168 plugin->sp_count = 0; in ocfs2_stack_glue_register()
169 plugin->sp_max_proto = locking_max_version; in ocfs2_stack_glue_register()
170 list_add(&plugin->sp_list, &ocfs2_stack_list); in ocfs2_stack_glue_register()
172 plugin->sp_name); in ocfs2_stack_glue_register()
176 plugin->sp_name); in ocfs2_stack_glue_register()
185 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_unregister() argument
190 p = ocfs2_stack_lookup(plugin->sp_name); in ocfs2_stack_glue_unregister()
192 BUG_ON(p != plugin); in ocfs2_stack_glue_unregister()
193 BUG_ON(plugin == active_stack); in ocfs2_stack_glue_unregister()
194 BUG_ON(plugin->sp_count != 0); in ocfs2_stack_glue_unregister()
195 list_del_init(&plugin->sp_list); in ocfs2_stack_glue_unregister()
197 plugin->sp_name); in ocfs2_stack_glue_unregister()
200 plugin->sp_name); in ocfs2_stack_glue_unregister()