diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-03-18 15:35:05 -0700 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-04-14 18:26:12 -0400 |
commit | 98e036a356747cfaa225478b1e4875e190257b09 (patch) | |
tree | 77bb0027b14dd5502b957f7f5bbbbf894eee9f38 | |
parent | 2ccbfe26c106a1a93a402567b7853c1484c4a0b0 (diff) | |
download | kernel_goldelico_gta04-98e036a356747cfaa225478b1e4875e190257b09.zip kernel_goldelico_gta04-98e036a356747cfaa225478b1e4875e190257b09.tar.gz kernel_goldelico_gta04-98e036a356747cfaa225478b1e4875e190257b09.tar.bz2 |
xen/blkback: add accessor for xenbus backend device
Since backend_info is hidden away now.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
-rw-r--r-- | drivers/xen/blkback/common.h | 2 | ||||
-rw-r--r-- | drivers/xen/blkback/vbd.c | 2 | ||||
-rw-r--r-- | drivers/xen/blkback/xenbus.c | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/drivers/xen/blkback/common.h b/drivers/xen/blkback/common.h index cebcc2b..0f91830 100644 --- a/drivers/xen/blkback/common.h +++ b/drivers/xen/blkback/common.h @@ -136,4 +136,6 @@ int blkif_schedule(void *arg); int blkback_barrier(struct xenbus_transaction xbt, struct backend_info *be, int state); +struct xenbus_device *blkback_xenbus(struct backend_info *be); + #endif /* __BLKIF__BACKEND__COMMON_H__ */ diff --git a/drivers/xen/blkback/vbd.c b/drivers/xen/blkback/vbd.c index 0635c54..943ec23 100644 --- a/drivers/xen/blkback/vbd.c +++ b/drivers/xen/blkback/vbd.c @@ -123,7 +123,7 @@ void vbd_resize(blkif_t *blkif) struct vbd *vbd = &blkif->vbd; struct xenbus_transaction xbt; int err; - struct xenbus_device *dev = blkif->be->dev; + struct xenbus_device *dev = blkback_xenbus(blkif->be); unsigned long long new_size = vbd_size(vbd); printk(KERN_INFO "VBD Resize: new size %Lu\n", new_size); diff --git a/drivers/xen/blkback/xenbus.c b/drivers/xen/blkback/xenbus.c index 34f8e40..c31e5c4 100644 --- a/drivers/xen/blkback/xenbus.c +++ b/drivers/xen/blkback/xenbus.c @@ -42,6 +42,11 @@ static int connect_ring(struct backend_info *); static void backend_changed(struct xenbus_watch *, const char **, unsigned int); +struct xenbus_device *blkback_xenbus(struct backend_info *be) +{ + return be->dev; +} + static int blkback_name(blkif_t *blkif, char *buf) { char *devpath, *devname; |