Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / md_path_lookup-2.6-suse
1 Index: linux-2.6.4-51.0/drivers/md/dm-path-selector.c
2 ===================================================================
3 --- linux-2.6.4-51.0.orig/drivers/md/dm-path-selector.c 2004-04-18 20:10:21.000000000 -0400
4 +++ linux-2.6.4-51.0/drivers/md/dm-path-selector.c      2004-04-18 20:10:59.000000000 -0400
5 @@ -129,7 +129,7 @@
6         struct path *path;
7  };
8  
9 -static struct path_info *path_lookup(struct list_head *head, struct path *p)
10 +static struct path_info *md_path_lookup(struct list_head *head, struct path *p)
11  {
12         struct path_info *pi;
13  
14 @@ -235,9 +235,9 @@
15          * mind the expense of these searches.
16          */
17         spin_lock_irqsave(&s->lock, flags);
18 -       pi = path_lookup(&s->valid_paths, p);
19 +       pi = md_path_lookup(&s->valid_paths, p);
20         if (!pi)
21 -               pi = path_lookup(&s->invalid_paths, p);
22 +               pi = md_path_lookup(&s->invalid_paths, p);
23  
24         if (!pi)
25                 DMWARN("asked to change the state of an unknown path");