Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251210
b: refs/heads/master
c: 98e036a
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Konrad Rzeszutek Wilk committed Apr 14, 2011
1 parent 79fcb95 commit 6f2b9e2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ccbfe26c106a1a93a402567b7853c1484c4a0b0
refs/heads/master: 98e036a356747cfaa225478b1e4875e190257b09
2 changes: 2 additions & 0 deletions trunk/drivers/xen/blkback/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
2 changes: 1 addition & 1 deletion trunk/drivers/xen/blkback/vbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/xen/blkback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f2b9e2

Please sign in to comment.