aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-round-robin.c
diff options
context:
space:
mode:
authorJosef "Jeff" Sipek <jsipek@cs.sunysb.edu>2006-12-08 05:36:33 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:40 -0500
commitc922d5f7f5457da9e9b5a26dd53e2dcef6ca2f7d (patch)
tree15e0e7435f428e87662978d23c2567013e56b681 /drivers/md/dm-round-robin.c
parentfec6d055da71fb02a76f9c2c12427fa79974018b (diff)
[PATCH] struct path: rename DM's struct path
Rename DM's struct path to struct dm_path to prevent name collision between it and struct path from fs/namei.c. Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> Acked-by: Alasdair G Kergon <agk@redhat.com> Cc: <reiserfs-dev@namesys.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/dm-round-robin.c')
-rw-r--r--drivers/md/dm-round-robin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/dm-round-robin.c b/drivers/md/dm-round-robin.c
index 6f9fcd4db9b5..a348a97b65af 100644
--- a/drivers/md/dm-round-robin.c
+++ b/drivers/md/dm-round-robin.c
@@ -21,7 +21,7 @@
21 *---------------------------------------------------------------*/ 21 *---------------------------------------------------------------*/
22struct path_info { 22struct path_info {
23 struct list_head list; 23 struct list_head list;
24 struct path *path; 24 struct dm_path *path;
25 unsigned repeat_count; 25 unsigned repeat_count;
26}; 26};
27 27
@@ -80,7 +80,7 @@ static void rr_destroy(struct path_selector *ps)
80 ps->context = NULL; 80 ps->context = NULL;
81} 81}
82 82
83static int rr_status(struct path_selector *ps, struct path *path, 83static int rr_status(struct path_selector *ps, struct dm_path *path,
84 status_type_t type, char *result, unsigned int maxlen) 84 status_type_t type, char *result, unsigned int maxlen)
85{ 85{
86 struct path_info *pi; 86 struct path_info *pi;
@@ -106,7 +106,7 @@ static int rr_status(struct path_selector *ps, struct path *path,
106 * Called during initialisation to register each path with an 106 * Called during initialisation to register each path with an
107 * optional repeat_count. 107 * optional repeat_count.
108 */ 108 */
109static int rr_add_path(struct path_selector *ps, struct path *path, 109static int rr_add_path(struct path_selector *ps, struct dm_path *path,
110 int argc, char **argv, char **error) 110 int argc, char **argv, char **error)
111{ 111{
112 struct selector *s = (struct selector *) ps->context; 112 struct selector *s = (struct selector *) ps->context;
@@ -141,7 +141,7 @@ static int rr_add_path(struct path_selector *ps, struct path *path,
141 return 0; 141 return 0;
142} 142}
143 143
144static void rr_fail_path(struct path_selector *ps, struct path *p) 144static void rr_fail_path(struct path_selector *ps, struct dm_path *p)
145{ 145{
146 struct selector *s = (struct selector *) ps->context; 146 struct selector *s = (struct selector *) ps->context;
147 struct path_info *pi = p->pscontext; 147 struct path_info *pi = p->pscontext;
@@ -149,7 +149,7 @@ static void rr_fail_path(struct path_selector *ps, struct path *p)
149 list_move(&pi->list, &s->invalid_paths); 149 list_move(&pi->list, &s->invalid_paths);
150} 150}
151 151
152static int rr_reinstate_path(struct path_selector *ps, struct path *p) 152static int rr_reinstate_path(struct path_selector *ps, struct dm_path *p)
153{ 153{
154 struct selector *s = (struct selector *) ps->context; 154 struct selector *s = (struct selector *) ps->context;
155 struct path_info *pi = p->pscontext; 155 struct path_info *pi = p->pscontext;
@@ -159,7 +159,7 @@ static int rr_reinstate_path(struct path_selector *ps, struct path *p)
159 return 0; 159 return 0;
160} 160}
161 161
162static struct path *rr_select_path(struct path_selector *ps, 162static struct dm_path *rr_select_path(struct path_selector *ps,
163 unsigned *repeat_count) 163 unsigned *repeat_count)
164{ 164{
165 struct selector *s = (struct selector *) ps->context; 165 struct selector *s = (struct selector *) ps->context;