diff options
-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 cebcc2b7e9f6..0f91830f18c8 100644 --- a/drivers/xen/blkback/common.h +++ b/drivers/xen/blkback/common.h | |||
@@ -136,4 +136,6 @@ int blkif_schedule(void *arg); | |||
136 | int blkback_barrier(struct xenbus_transaction xbt, | 136 | int blkback_barrier(struct xenbus_transaction xbt, |
137 | struct backend_info *be, int state); | 137 | struct backend_info *be, int state); |
138 | 138 | ||
139 | struct xenbus_device *blkback_xenbus(struct backend_info *be); | ||
140 | |||
139 | #endif /* __BLKIF__BACKEND__COMMON_H__ */ | 141 | #endif /* __BLKIF__BACKEND__COMMON_H__ */ |
diff --git a/drivers/xen/blkback/vbd.c b/drivers/xen/blkback/vbd.c index 0635c54079f8..943ec2313522 100644 --- a/drivers/xen/blkback/vbd.c +++ b/drivers/xen/blkback/vbd.c | |||
@@ -123,7 +123,7 @@ void vbd_resize(blkif_t *blkif) | |||
123 | struct vbd *vbd = &blkif->vbd; | 123 | struct vbd *vbd = &blkif->vbd; |
124 | struct xenbus_transaction xbt; | 124 | struct xenbus_transaction xbt; |
125 | int err; | 125 | int err; |
126 | struct xenbus_device *dev = blkif->be->dev; | 126 | struct xenbus_device *dev = blkback_xenbus(blkif->be); |
127 | unsigned long long new_size = vbd_size(vbd); | 127 | unsigned long long new_size = vbd_size(vbd); |
128 | 128 | ||
129 | printk(KERN_INFO "VBD Resize: new size %Lu\n", new_size); | 129 | 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 34f8e4046578..c31e5c40b45c 100644 --- a/drivers/xen/blkback/xenbus.c +++ b/drivers/xen/blkback/xenbus.c | |||
@@ -42,6 +42,11 @@ static int connect_ring(struct backend_info *); | |||
42 | static void backend_changed(struct xenbus_watch *, const char **, | 42 | static void backend_changed(struct xenbus_watch *, const char **, |
43 | unsigned int); | 43 | unsigned int); |
44 | 44 | ||
45 | struct xenbus_device *blkback_xenbus(struct backend_info *be) | ||
46 | { | ||
47 | return be->dev; | ||
48 | } | ||
49 | |||
45 | static int blkback_name(blkif_t *blkif, char *buf) | 50 | static int blkback_name(blkif_t *blkif, char *buf) |
46 | { | 51 | { |
47 | char *devpath, *devname; | 52 | char *devpath, *devname; |