diff options
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r-- | drivers/block/aoe/aoe.h | 1 | ||||
-rw-r--r-- | drivers/block/aoe/aoedev.c | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index 280e71ee744c..5b4c6e649c11 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h | |||
@@ -195,7 +195,6 @@ void aoedev_exit(void); | |||
195 | struct aoedev *aoedev_by_aoeaddr(int maj, int min); | 195 | struct aoedev *aoedev_by_aoeaddr(int maj, int min); |
196 | struct aoedev *aoedev_by_sysminor_m(ulong sysminor); | 196 | struct aoedev *aoedev_by_sysminor_m(ulong sysminor); |
197 | void aoedev_downdev(struct aoedev *d); | 197 | void aoedev_downdev(struct aoedev *d); |
198 | int aoedev_isbusy(struct aoedev *d); | ||
199 | int aoedev_flush(const char __user *str, size_t size); | 198 | int aoedev_flush(const char __user *str, size_t size); |
200 | 199 | ||
201 | int aoenet_init(void); | 200 | int aoenet_init(void); |
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index f9a1cd9edb77..a1d813ab0d6b 100644 --- a/drivers/block/aoe/aoedev.c +++ b/drivers/block/aoe/aoedev.c | |||
@@ -18,24 +18,6 @@ static void skbpoolfree(struct aoedev *d); | |||
18 | static struct aoedev *devlist; | 18 | static struct aoedev *devlist; |
19 | static DEFINE_SPINLOCK(devlist_lock); | 19 | static DEFINE_SPINLOCK(devlist_lock); |
20 | 20 | ||
21 | int | ||
22 | aoedev_isbusy(struct aoedev *d) | ||
23 | { | ||
24 | struct aoetgt **t, **te; | ||
25 | struct frame *f, *e; | ||
26 | |||
27 | t = d->targets; | ||
28 | te = t + NTARGETS; | ||
29 | for (; t < te && *t; t++) { | ||
30 | f = (*t)->frames; | ||
31 | e = f + (*t)->nframes; | ||
32 | for (; f < e; f++) | ||
33 | if (f->tag != FREETAG) | ||
34 | return 1; | ||
35 | } | ||
36 | return 0; | ||
37 | } | ||
38 | |||
39 | struct aoedev * | 21 | struct aoedev * |
40 | aoedev_by_aoeaddr(int maj, int min) | 22 | aoedev_by_aoeaddr(int maj, int min) |
41 | { | 23 | { |