diff options
Diffstat (limited to 'drivers/md/dm-path-selector.h')
-rw-r--r-- | drivers/md/dm-path-selector.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/dm-path-selector.h b/drivers/md/dm-path-selector.h index 732d06a84f85..27357b85d73d 100644 --- a/drivers/md/dm-path-selector.h +++ b/drivers/md/dm-path-selector.h | |||
@@ -44,7 +44,7 @@ struct path_selector_type { | |||
44 | * Add an opaque path object, along with some selector specific | 44 | * Add an opaque path object, along with some selector specific |
45 | * path args (eg, path priority). | 45 | * path args (eg, path priority). |
46 | */ | 46 | */ |
47 | int (*add_path) (struct path_selector *ps, struct path *path, | 47 | int (*add_path) (struct path_selector *ps, struct dm_path *path, |
48 | int argc, char **argv, char **error); | 48 | int argc, char **argv, char **error); |
49 | 49 | ||
50 | /* | 50 | /* |
@@ -55,27 +55,27 @@ struct path_selector_type { | |||
55 | * calling the function again. 0 means don't call it again unless | 55 | * calling the function again. 0 means don't call it again unless |
56 | * the path fails. | 56 | * the path fails. |
57 | */ | 57 | */ |
58 | struct path *(*select_path) (struct path_selector *ps, | 58 | struct dm_path *(*select_path) (struct path_selector *ps, |
59 | unsigned *repeat_count); | 59 | unsigned *repeat_count); |
60 | 60 | ||
61 | /* | 61 | /* |
62 | * Notify the selector that a path has failed. | 62 | * Notify the selector that a path has failed. |
63 | */ | 63 | */ |
64 | void (*fail_path) (struct path_selector *ps, struct path *p); | 64 | void (*fail_path) (struct path_selector *ps, struct dm_path *p); |
65 | 65 | ||
66 | /* | 66 | /* |
67 | * Ask selector to reinstate a path. | 67 | * Ask selector to reinstate a path. |
68 | */ | 68 | */ |
69 | int (*reinstate_path) (struct path_selector *ps, struct path *p); | 69 | int (*reinstate_path) (struct path_selector *ps, struct dm_path *p); |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Table content based on parameters added in ps_add_path_fn | 72 | * Table content based on parameters added in ps_add_path_fn |
73 | * or path selector status | 73 | * or path selector status |
74 | */ | 74 | */ |
75 | int (*status) (struct path_selector *ps, struct path *path, | 75 | int (*status) (struct path_selector *ps, struct dm_path *path, |
76 | status_type_t type, char *result, unsigned int maxlen); | 76 | status_type_t type, char *result, unsigned int maxlen); |
77 | 77 | ||
78 | int (*end_io) (struct path_selector *ps, struct path *path); | 78 | int (*end_io) (struct path_selector *ps, struct dm_path *path); |
79 | }; | 79 | }; |
80 | 80 | ||
81 | /* Register a path selector */ | 81 | /* Register a path selector */ |