aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-04-20 11:50:43 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-04-20 11:58:03 -0400
commit8b6bf747d70e5bac1a34c8fd773230e1cfdd7546 (patch)
tree187680a66902c915b92a5cc42892b71aed97895f /drivers
parent42c7841d171a2fe32005738dfebd724a90921496 (diff)
xen/blkback: Prefix exposed functions with xen_
And also shorten the name if it has blkback to blkbk. This results in the symbol table (if compiled in the kernel) to be much shorter, prettier, and also easier to search for. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/xen-blkback/blkback.c36
-rw-r--r--drivers/block/xen-blkback/common.h18
-rw-r--r--drivers/block/xen-blkback/xenbus.c80
3 files changed, 68 insertions, 66 deletions
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index 806c2c947c63..c4bc85e69d33 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -53,13 +53,13 @@
53 * pulled from a communication ring are quite likely to end up being part of 53 * pulled from a communication ring are quite likely to end up being part of
54 * the same scatter/gather request at the disc. 54 * the same scatter/gather request at the disc.
55 * 55 *
56 * ** TRY INCREASING 'blkif_reqs' IF WRITE SPEEDS SEEM TOO LOW ** 56 * ** TRY INCREASING 'xen_blkif_reqs' IF WRITE SPEEDS SEEM TOO LOW **
57 * 57 *
58 * This will increase the chances of being able to write whole tracks. 58 * This will increase the chances of being able to write whole tracks.
59 * 64 should be enough to keep us competitive with Linux. 59 * 64 should be enough to keep us competitive with Linux.
60 */ 60 */
61static int blkif_reqs = 64; 61static int xen_blkif_reqs = 64;
62module_param_named(reqs, blkif_reqs, int, 0); 62module_param_named(reqs, xen_blkif_reqs, int, 0);
63MODULE_PARM_DESC(reqs, "Number of blkback requests to allocate"); 63MODULE_PARM_DESC(reqs, "Number of blkback requests to allocate");
64 64
65/* Run-time switchable: /sys/module/blkback/parameters/ */ 65/* Run-time switchable: /sys/module/blkback/parameters/ */
@@ -196,7 +196,7 @@ static void vbd_resize(struct blkif_st *blkif)
196 struct vbd *vbd = &blkif->vbd; 196 struct vbd *vbd = &blkif->vbd;
197 struct xenbus_transaction xbt; 197 struct xenbus_transaction xbt;
198 int err; 198 int err;
199 struct xenbus_device *dev = blkback_xenbus(blkif->be); 199 struct xenbus_device *dev = xen_blkbk_xenbus(blkif->be);
200 unsigned long long new_size = vbd_sz(vbd); 200 unsigned long long new_size = vbd_sz(vbd);
201 201
202 printk(KERN_INFO "VBD Resize: Domid: %d, Device: (%d, %d)\n", 202 printk(KERN_INFO "VBD Resize: Domid: %d, Device: (%d, %d)\n",
@@ -244,7 +244,7 @@ static void blkif_notify_work(struct blkif_st *blkif)
244 wake_up(&blkif->wq); 244 wake_up(&blkif->wq);
245} 245}
246 246
247irqreturn_t blkif_be_int(int irq, void *dev_id) 247irqreturn_t xen_blkif_be_int(int irq, void *dev_id)
248{ 248{
249 blkif_notify_work(dev_id); 249 blkif_notify_work(dev_id);
250 return IRQ_HANDLED; 250 return IRQ_HANDLED;
@@ -265,12 +265,12 @@ static void print_stats(struct blkif_st *blkif)
265 blkif->st_oo_req = 0; 265 blkif->st_oo_req = 0;
266} 266}
267 267
268int blkif_schedule(void *arg) 268int xen_blkif_schedule(void *arg)
269{ 269{
270 struct blkif_st *blkif = arg; 270 struct blkif_st *blkif = arg;
271 struct vbd *vbd = &blkif->vbd; 271 struct vbd *vbd = &blkif->vbd;
272 272
273 blkif_get(blkif); 273 xen_blkif_get(blkif);
274 274
275 if (debug_lvl) 275 if (debug_lvl)
276 printk(KERN_DEBUG "%s: started\n", current->comm); 276 printk(KERN_DEBUG "%s: started\n", current->comm);
@@ -305,7 +305,7 @@ int blkif_schedule(void *arg)
305 printk(KERN_DEBUG "%s: exiting\n", current->comm); 305 printk(KERN_DEBUG "%s: exiting\n", current->comm);
306 306
307 blkif->xenblkd = NULL; 307 blkif->xenblkd = NULL;
308 blkif_put(blkif); 308 xen_blkif_put(blkif);
309 309
310 return 0; 310 return 0;
311} 311}
@@ -417,7 +417,7 @@ static void __end_block_io_op(struct pending_req *pending_req, int error)
417 if ((pending_req->operation == BLKIF_OP_WRITE_BARRIER) && 417 if ((pending_req->operation == BLKIF_OP_WRITE_BARRIER) &&
418 (error == -EOPNOTSUPP)) { 418 (error == -EOPNOTSUPP)) {
419 DPRINTK("blkback: write barrier op failed, not supported\n"); 419 DPRINTK("blkback: write barrier op failed, not supported\n");
420 blkback_barrier(XBT_NIL, pending_req->blkif->be, 0); 420 xen_blkbk_barrier(XBT_NIL, pending_req->blkif->be, 0);
421 pending_req->status = BLKIF_RSP_EOPNOTSUPP; 421 pending_req->status = BLKIF_RSP_EOPNOTSUPP;
422 } else if (error) { 422 } else if (error) {
423 DPRINTK("Buffer not up-to-date at end of operation, " 423 DPRINTK("Buffer not up-to-date at end of operation, "
@@ -433,7 +433,7 @@ static void __end_block_io_op(struct pending_req *pending_req, int error)
433 xen_blkbk_unmap(pending_req); 433 xen_blkbk_unmap(pending_req);
434 make_response(pending_req->blkif, pending_req->id, 434 make_response(pending_req->blkif, pending_req->id,
435 pending_req->operation, pending_req->status); 435 pending_req->operation, pending_req->status);
436 blkif_put(pending_req->blkif); 436 xen_blkif_put(pending_req->blkif);
437 free_req(pending_req); 437 free_req(pending_req);
438 } 438 }
439} 439}
@@ -619,7 +619,7 @@ static void dispatch_rw_block_io(struct blkif_st *blkif,
619 goto fail_flush; 619 goto fail_flush;
620 620
621 /* This corresponding blkif_put is done in __end_block_io_op */ 621 /* This corresponding blkif_put is done in __end_block_io_op */
622 blkif_get(blkif); 622 xen_blkif_get(blkif);
623 623
624 for (i = 0; i < nseg; i++) { 624 for (i = 0; i < nseg; i++) {
625 while ((bio == NULL) || 625 while ((bio == NULL) ||
@@ -751,7 +751,7 @@ static void make_response(struct blkif_st *blkif, u64 id,
751 notify_remote_via_irq(blkif->irq); 751 notify_remote_via_irq(blkif->irq);
752} 752}
753 753
754static int __init blkif_init(void) 754static int __init xen_blkif_init(void)
755{ 755{
756 int i, mmap_pages; 756 int i, mmap_pages;
757 int rc = 0; 757 int rc = 0;
@@ -765,10 +765,10 @@ static int __init blkif_init(void)
765 return -ENOMEM; 765 return -ENOMEM;
766 } 766 }
767 767
768 mmap_pages = blkif_reqs * BLKIF_MAX_SEGMENTS_PER_REQUEST; 768 mmap_pages = xen_blkif_reqs * BLKIF_MAX_SEGMENTS_PER_REQUEST;
769 769
770 blkbk->pending_reqs = kmalloc(sizeof(blkbk->pending_reqs[0]) * 770 blkbk->pending_reqs = kmalloc(sizeof(blkbk->pending_reqs[0]) *
771 blkif_reqs, GFP_KERNEL); 771 xen_blkif_reqs, GFP_KERNEL);
772 blkbk->pending_grant_handles = kzalloc(sizeof(blkbk->pending_grant_handles[0]) * 772 blkbk->pending_grant_handles = kzalloc(sizeof(blkbk->pending_grant_handles[0]) *
773 mmap_pages, GFP_KERNEL); 773 mmap_pages, GFP_KERNEL);
774 blkbk->pending_pages = kzalloc(sizeof(blkbk->pending_pages[0]) * 774 blkbk->pending_pages = kzalloc(sizeof(blkbk->pending_pages[0]) *
@@ -788,7 +788,7 @@ static int __init blkif_init(void)
788 goto out_of_memory; 788 goto out_of_memory;
789 } 789 }
790 } 790 }
791 rc = blkif_interface_init(); 791 rc = xen_blkif_interface_init();
792 if (rc) 792 if (rc)
793 goto failed_init; 793 goto failed_init;
794 794
@@ -798,11 +798,11 @@ static int __init blkif_init(void)
798 spin_lock_init(&blkbk->pending_free_lock); 798 spin_lock_init(&blkbk->pending_free_lock);
799 init_waitqueue_head(&blkbk->pending_free_wq); 799 init_waitqueue_head(&blkbk->pending_free_wq);
800 800
801 for (i = 0; i < blkif_reqs; i++) 801 for (i = 0; i < xen_blkif_reqs; i++)
802 list_add_tail(&blkbk->pending_reqs[i].free_list, 802 list_add_tail(&blkbk->pending_reqs[i].free_list,
803 &blkbk->pending_free); 803 &blkbk->pending_free);
804 804
805 rc = blkif_xenbus_init(); 805 rc = xen_blkif_xenbus_init();
806 if (rc) 806 if (rc)
807 goto failed_init; 807 goto failed_init;
808 808
@@ -823,6 +823,6 @@ static int __init blkif_init(void)
823 return rc; 823 return rc;
824} 824}
825 825
826module_init(blkif_init); 826module_init(xen_blkif_init);
827 827
828MODULE_LICENSE("Dual BSD/GPL"); 828MODULE_LICENSE("Dual BSD/GPL");
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index 4b5acb3e8b24..16af388268e7 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -100,8 +100,8 @@ struct blkif_st {
100 (_v)->bdev->bd_part->nr_sects : \ 100 (_v)->bdev->bd_part->nr_sects : \
101 get_capacity((_v)->bdev->bd_disk)) 101 get_capacity((_v)->bdev->bd_disk))
102 102
103#define blkif_get(_b) (atomic_inc(&(_b)->refcnt)) 103#define xen_blkif_get(_b) (atomic_inc(&(_b)->refcnt))
104#define blkif_put(_b) \ 104#define xen_blkif_put(_b) \
105 do { \ 105 do { \
106 if (atomic_dec_and_test(&(_b)->refcnt)) \ 106 if (atomic_dec_and_test(&(_b)->refcnt)) \
107 wake_up(&(_b)->waiting_to_free);\ 107 wake_up(&(_b)->waiting_to_free);\
@@ -113,16 +113,16 @@ struct phys_req {
113 struct block_device *bdev; 113 struct block_device *bdev;
114 blkif_sector_t sector_number; 114 blkif_sector_t sector_number;
115}; 115};
116int blkif_interface_init(void); 116int xen_blkif_interface_init(void);
117 117
118int blkif_xenbus_init(void); 118int xen_blkif_xenbus_init(void);
119 119
120irqreturn_t blkif_be_int(int irq, void *dev_id); 120irqreturn_t xen_blkif_be_int(int irq, void *dev_id);
121int blkif_schedule(void *arg); 121int xen_blkif_schedule(void *arg);
122 122
123int blkback_barrier(struct xenbus_transaction xbt, 123int xen_blkbk_barrier(struct xenbus_transaction xbt,
124 struct backend_info *be, int state); 124 struct backend_info *be, int state);
125 125
126struct xenbus_device *blkback_xenbus(struct backend_info *be); 126struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be);
127 127
128#endif /* __BLKIF__BACKEND__COMMON_H__ */ 128#endif /* __BLKIF__BACKEND__COMMON_H__ */
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index 75bf49bd365c..64b0a1c760fb 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -35,13 +35,13 @@ struct backend_info {
35 char *mode; 35 char *mode;
36}; 36};
37 37
38static struct kmem_cache *blkif_cachep; 38static struct kmem_cache *xen_blkif_cachep;
39static void connect(struct backend_info *); 39static void connect(struct backend_info *);
40static int connect_ring(struct backend_info *); 40static int connect_ring(struct backend_info *);
41static void backend_changed(struct xenbus_watch *, const char **, 41static void backend_changed(struct xenbus_watch *, const char **,
42 unsigned int); 42 unsigned int);
43 43
44struct xenbus_device *blkback_xenbus(struct backend_info *be) 44struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be)
45{ 45{
46 return be->dev; 46 return be->dev;
47} 47}
@@ -67,7 +67,7 @@ static int blkback_name(struct blkif_st *blkif, char *buf)
67 return 0; 67 return 0;
68} 68}
69 69
70static void update_blkif_status(struct blkif_st *blkif) 70static void xen_update_blkif_status(struct blkif_st *blkif)
71{ 71{
72 int err; 72 int err;
73 char name[TASK_COMM_LEN]; 73 char name[TASK_COMM_LEN];
@@ -98,7 +98,7 @@ static void update_blkif_status(struct blkif_st *blkif)
98 } 98 }
99 invalidate_inode_pages2(blkif->vbd.bdev->bd_inode->i_mapping); 99 invalidate_inode_pages2(blkif->vbd.bdev->bd_inode->i_mapping);
100 100
101 blkif->xenblkd = kthread_run(blkif_schedule, blkif, name); 101 blkif->xenblkd = kthread_run(xen_blkif_schedule, blkif, name);
102 if (IS_ERR(blkif->xenblkd)) { 102 if (IS_ERR(blkif->xenblkd)) {
103 err = PTR_ERR(blkif->xenblkd); 103 err = PTR_ERR(blkif->xenblkd);
104 blkif->xenblkd = NULL; 104 blkif->xenblkd = NULL;
@@ -106,11 +106,11 @@ static void update_blkif_status(struct blkif_st *blkif)
106 } 106 }
107} 107}
108 108
109struct blkif_st *blkif_alloc(domid_t domid) 109static struct blkif_st *xen_blkif_alloc(domid_t domid)
110{ 110{
111 struct blkif_st *blkif; 111 struct blkif_st *blkif;
112 112
113 blkif = kmem_cache_alloc(blkif_cachep, GFP_KERNEL); 113 blkif = kmem_cache_alloc(xen_blkif_cachep, GFP_KERNEL);
114 if (!blkif) 114 if (!blkif)
115 return ERR_PTR(-ENOMEM); 115 return ERR_PTR(-ENOMEM);
116 116
@@ -157,8 +157,8 @@ static void unmap_frontend_page(struct blkif_st *blkif)
157 BUG(); 157 BUG();
158} 158}
159 159
160int blkif_map(struct blkif_st *blkif, unsigned long shared_page, 160static int xen_blkif_map(struct blkif_st *blkif, unsigned long shared_page,
161 unsigned int evtchn) 161 unsigned int evtchn)
162{ 162{
163 int err; 163 int err;
164 164
@@ -202,8 +202,9 @@ int blkif_map(struct blkif_st *blkif, unsigned long shared_page,
202 BUG(); 202 BUG();
203 } 203 }
204 204
205 err = bind_interdomain_evtchn_to_irqhandler( 205 err = bind_interdomain_evtchn_to_irqhandler(blkif->domid, evtchn,
206 blkif->domid, evtchn, blkif_be_int, 0, "blkif-backend", blkif); 206 xen_blkif_be_int, 0,
207 "blkif-backend", blkif);
207 if (err < 0) { 208 if (err < 0) {
208 unmap_frontend_page(blkif); 209 unmap_frontend_page(blkif);
209 free_vm_area(blkif->blk_ring_area); 210 free_vm_area(blkif->blk_ring_area);
@@ -215,7 +216,7 @@ int blkif_map(struct blkif_st *blkif, unsigned long shared_page,
215 return 0; 216 return 0;
216} 217}
217 218
218void blkif_disconnect(struct blkif_st *blkif) 219static void xen_blkif_disconnect(struct blkif_st *blkif)
219{ 220{
220 if (blkif->xenblkd) { 221 if (blkif->xenblkd) {
221 kthread_stop(blkif->xenblkd); 222 kthread_stop(blkif->xenblkd);
@@ -238,18 +239,19 @@ void blkif_disconnect(struct blkif_st *blkif)
238 } 239 }
239} 240}
240 241
241void blkif_free(struct blkif_st *blkif) 242void xen_blkif_free(struct blkif_st *blkif)
242{ 243{
243 if (!atomic_dec_and_test(&blkif->refcnt)) 244 if (!atomic_dec_and_test(&blkif->refcnt))
244 BUG(); 245 BUG();
245 kmem_cache_free(blkif_cachep, blkif); 246 kmem_cache_free(xen_blkif_cachep, blkif);
246} 247}
247 248
248int __init blkif_interface_init(void) 249int __init xen_blkif_interface_init(void)
249{ 250{
250 blkif_cachep = kmem_cache_create("blkif_cache", sizeof(struct blkif_st), 251 xen_blkif_cachep = kmem_cache_create("blkif_cache",
251 0, 0, NULL); 252 sizeof(struct blkif_st),
252 if (!blkif_cachep) 253 0, 0, NULL);
254 if (!xen_blkif_cachep)
253 return -ENOMEM; 255 return -ENOMEM;
254 256
255 return 0; 257 return 0;
@@ -377,7 +379,7 @@ static int vbd_create(struct blkif_st *blkif, blkif_vdev_t handle,
377 handle, blkif->domid); 379 handle, blkif->domid);
378 return 0; 380 return 0;
379} 381}
380static int blkback_remove(struct xenbus_device *dev) 382static int xen_blkbk_remove(struct xenbus_device *dev)
381{ 383{
382 struct backend_info *be = dev_get_drvdata(&dev->dev); 384 struct backend_info *be = dev_get_drvdata(&dev->dev);
383 385
@@ -393,9 +395,9 @@ static int blkback_remove(struct xenbus_device *dev)
393 } 395 }
394 396
395 if (be->blkif) { 397 if (be->blkif) {
396 blkif_disconnect(be->blkif); 398 xen_blkif_disconnect(be->blkif);
397 vbd_free(&be->blkif->vbd); 399 vbd_free(&be->blkif->vbd);
398 blkif_free(be->blkif); 400 xen_blkif_free(be->blkif);
399 be->blkif = NULL; 401 be->blkif = NULL;
400 } 402 }
401 403
@@ -404,8 +406,8 @@ static int blkback_remove(struct xenbus_device *dev)
404 return 0; 406 return 0;
405} 407}
406 408
407int blkback_barrier(struct xenbus_transaction xbt, 409int xen_blkbk_barrier(struct xenbus_transaction xbt,
408 struct backend_info *be, int state) 410 struct backend_info *be, int state)
409{ 411{
410 struct xenbus_device *dev = be->dev; 412 struct xenbus_device *dev = be->dev;
411 int err; 413 int err;
@@ -423,8 +425,8 @@ int blkback_barrier(struct xenbus_transaction xbt,
423 * structures, and watch the store waiting for the hotplug scripts to tell us 425 * structures, and watch the store waiting for the hotplug scripts to tell us
424 * the device's physical major and minor numbers. Switch to InitWait. 426 * the device's physical major and minor numbers. Switch to InitWait.
425 */ 427 */
426static int blkback_probe(struct xenbus_device *dev, 428static int xen_blkbk_probe(struct xenbus_device *dev,
427 const struct xenbus_device_id *id) 429 const struct xenbus_device_id *id)
428{ 430{
429 int err; 431 int err;
430 struct backend_info *be = kzalloc(sizeof(struct backend_info), 432 struct backend_info *be = kzalloc(sizeof(struct backend_info),
@@ -437,7 +439,7 @@ static int blkback_probe(struct xenbus_device *dev,
437 be->dev = dev; 439 be->dev = dev;
438 dev_set_drvdata(&dev->dev, be); 440 dev_set_drvdata(&dev->dev, be);
439 441
440 be->blkif = blkif_alloc(dev->otherend_id); 442 be->blkif = xen_blkif_alloc(dev->otherend_id);
441 if (IS_ERR(be->blkif)) { 443 if (IS_ERR(be->blkif)) {
442 err = PTR_ERR(be->blkif); 444 err = PTR_ERR(be->blkif);
443 be->blkif = NULL; 445 be->blkif = NULL;
@@ -461,7 +463,7 @@ static int blkback_probe(struct xenbus_device *dev,
461 463
462fail: 464fail:
463 DPRINTK("failed"); 465 DPRINTK("failed");
464 blkback_remove(dev); 466 xen_blkbk_remove(dev);
465 return err; 467 return err;
466} 468}
467 469
@@ -550,7 +552,7 @@ static void backend_changed(struct xenbus_watch *watch,
550 } 552 }
551 553
552 /* We're potentially connected now */ 554 /* We're potentially connected now */
553 update_blkif_status(be->blkif); 555 xen_update_blkif_status(be->blkif);
554 } 556 }
555} 557}
556 558
@@ -586,16 +588,16 @@ static void frontend_changed(struct xenbus_device *dev,
586 /* Enforce precondition before potential leak point. 588 /* Enforce precondition before potential leak point.
587 * blkif_disconnect() is idempotent. 589 * blkif_disconnect() is idempotent.
588 */ 590 */
589 blkif_disconnect(be->blkif); 591 xen_blkif_disconnect(be->blkif);
590 592
591 err = connect_ring(be); 593 err = connect_ring(be);
592 if (err) 594 if (err)
593 break; 595 break;
594 update_blkif_status(be->blkif); 596 xen_update_blkif_status(be->blkif);
595 break; 597 break;
596 598
597 case XenbusStateClosing: 599 case XenbusStateClosing:
598 blkif_disconnect(be->blkif); 600 xen_blkif_disconnect(be->blkif);
599 xenbus_switch_state(dev, XenbusStateClosing); 601 xenbus_switch_state(dev, XenbusStateClosing);
600 break; 602 break;
601 603
@@ -640,7 +642,7 @@ again:
640 return; 642 return;
641 } 643 }
642 644
643 err = blkback_barrier(xbt, be, 1); 645 err = xen_blkbk_barrier(xbt, be, 1);
644 if (err) 646 if (err)
645 goto abort; 647 goto abort;
646 648
@@ -726,7 +728,7 @@ static int connect_ring(struct backend_info *be)
726 ring_ref, evtchn, be->blkif->blk_protocol, protocol); 728 ring_ref, evtchn, be->blkif->blk_protocol, protocol);
727 729
728 /* Map the shared frame, irq etc. */ 730 /* Map the shared frame, irq etc. */
729 err = blkif_map(be->blkif, ring_ref, evtchn); 731 err = xen_blkif_map(be->blkif, ring_ref, evtchn);
730 if (err) { 732 if (err) {
731 xenbus_dev_fatal(dev, err, "mapping ring-ref %lu port %u", 733 xenbus_dev_fatal(dev, err, "mapping ring-ref %lu port %u",
732 ring_ref, evtchn); 734 ring_ref, evtchn);
@@ -740,23 +742,23 @@ static int connect_ring(struct backend_info *be)
740/* ** Driver Registration ** */ 742/* ** Driver Registration ** */
741 743
742 744
743static const struct xenbus_device_id blkback_ids[] = { 745static const struct xenbus_device_id xen_blkbk_ids[] = {
744 { "vbd" }, 746 { "vbd" },
745 { "" } 747 { "" }
746}; 748};
747 749
748 750
749static struct xenbus_driver blkback = { 751static struct xenbus_driver xen_blkbk = {
750 .name = "vbd", 752 .name = "vbd",
751 .owner = THIS_MODULE, 753 .owner = THIS_MODULE,
752 .ids = blkback_ids, 754 .ids = xen_blkbk_ids,
753 .probe = blkback_probe, 755 .probe = xen_blkbk_probe,
754 .remove = blkback_remove, 756 .remove = xen_blkbk_remove,
755 .otherend_changed = frontend_changed 757 .otherend_changed = frontend_changed
756}; 758};
757 759
758 760
759int blkif_xenbus_init(void) 761int xen_blkif_xenbus_init(void)
760{ 762{
761 return xenbus_register_backend(&blkback); 763 return xenbus_register_backend(&xen_blkbk);
762} 764}