path_selector
struct path_selector *ps = &pgpath->pg->ps;
struct path_selector *ps = &pgpath->pg->ps;
struct path_selector *ps = &pg->ps;
struct path_selector ps;
static struct pgpath *parse_path(struct dm_arg_set *as, struct path_selector *ps,
int (*create)(struct path_selector *ps, unsigned int argc, char **argv);
void (*destroy)(struct path_selector *ps);
int (*add_path)(struct path_selector *ps, struct dm_path *path,
struct dm_path *(*select_path)(struct path_selector *ps, size_t nr_bytes);
void (*fail_path)(struct path_selector *ps, struct dm_path *p);
int (*reinstate_path)(struct path_selector *ps, struct dm_path *p);
int (*status)(struct path_selector *ps, struct dm_path *path,
int (*start_io)(struct path_selector *ps, struct dm_path *path,
int (*end_io)(struct path_selector *ps, struct dm_path *path,
static u64 hst_weight(struct path_selector *ps, u64 delta)
static void hst_set_weights(struct path_selector *ps, unsigned int base)
static int hst_create(struct path_selector *ps, unsigned int argc, char **argv)
static void hst_destroy(struct path_selector *ps)
static int hst_status(struct path_selector *ps, struct dm_path *path,
static int hst_add_path(struct path_selector *ps, struct dm_path *path,
static void hst_fail_path(struct path_selector *ps, struct dm_path *path)
static int hst_reinstate_path(struct path_selector *ps, struct dm_path *path)
u64 time_now, struct path_selector *ps)
static struct dm_path *hst_select_path(struct path_selector *ps,
static int hst_start_io(struct path_selector *ps, struct dm_path *path,
static int hst_end_io(struct path_selector *ps, struct dm_path *path,
static int ioa_create(struct path_selector *ps, unsigned int argc, char **argv)
static void ioa_destroy(struct path_selector *ps)
static int ioa_status(struct path_selector *ps, struct dm_path *path,
static void ioa_fail_path(struct path_selector *ps, struct dm_path *p)
static int ioa_reinstate_path(struct path_selector *ps, struct dm_path *p)
static struct dm_path *ioa_select_path(struct path_selector *ps,
static int ioa_add_path(struct path_selector *ps, struct dm_path *path,
static int ql_add_path(struct path_selector *ps, struct dm_path *path,
static void ql_fail_path(struct path_selector *ps, struct dm_path *path)
static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path)
static struct dm_path *ql_select_path(struct path_selector *ps, size_t nr_bytes)
static int ql_start_io(struct path_selector *ps, struct dm_path *path,
static int ql_end_io(struct path_selector *ps, struct dm_path *path,
static int ql_create(struct path_selector *ps, unsigned int argc, char **argv)
static void ql_destroy(struct path_selector *ps)
static int ql_status(struct path_selector *ps, struct dm_path *path,
static int rr_add_path(struct path_selector *ps, struct dm_path *path,
static void rr_fail_path(struct path_selector *ps, struct dm_path *p)
static int rr_reinstate_path(struct path_selector *ps, struct dm_path *p)
static struct dm_path *rr_select_path(struct path_selector *ps, size_t nr_bytes)
static int rr_create(struct path_selector *ps, unsigned int argc, char **argv)
static void rr_destroy(struct path_selector *ps)
static int rr_status(struct path_selector *ps, struct dm_path *path,
static int st_add_path(struct path_selector *ps, struct dm_path *path,
static void st_fail_path(struct path_selector *ps, struct dm_path *path)
static int st_reinstate_path(struct path_selector *ps, struct dm_path *path)
static struct dm_path *st_select_path(struct path_selector *ps, size_t nr_bytes)
static int st_start_io(struct path_selector *ps, struct dm_path *path,
static int st_end_io(struct path_selector *ps, struct dm_path *path,
static int st_create(struct path_selector *ps, unsigned int argc, char **argv)
static void st_destroy(struct path_selector *ps)
static int st_status(struct path_selector *ps, struct dm_path *path,