13 #include <linux/module.h>
17 #include <linux/slab.h>
24 #define pst_to_psi(__pst) container_of((__pst), struct ps_internal, pst)
41 static struct ps_internal *get_path_selector(
const char *name)
46 psi = __find_path_selector_type(name);
47 if (psi && !try_module_get(psi->
pst.module))
61 psi = get_path_selector(name);
63 request_module(
"dm-%s", name);
64 psi = get_path_selector(name);
78 psi = __find_path_selector_type(pst->
name);
82 module_put(psi->
pst.module);
100 struct ps_internal *psi = _alloc_path_selector(pst);
107 if (__find_path_selector_type(pst->
name)) {
111 list_add(&psi->
list, &_path_selectors);
124 psi = __find_path_selector_type(pst->
name);