xen/blkback: deal with hardsect_size to logical_block_size rename
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 29 Jun 2009 21:58:45 +0000 (14:58 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Apr 2011 22:26:03 +0000 (18:26 -0400)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/blkback/blkback.c
drivers/xen/blkback/vbd.c

index 8d988f4..ac5af91 100644 (file)
@@ -484,7 +484,7 @@ static void dispatch_rw_block_io(blkif_t *blkif,
 
        for (i = 0; i < nseg; i++) {
                if (((int)preq.sector_number|(int)seg[i].nsec) &
-                   ((bdev_hardsect_size(preq.bdev) >> 9) - 1)) {
+                   ((bdev_logical_block_size(preq.bdev) >> 9) - 1)) {
                        DPRINTK("Misaligned I/O request from domain %d",
                                blkif->domid);
                        goto fail_put_bio;
index 7e9a1cd..410c2ea 100644 (file)
@@ -47,7 +47,7 @@ unsigned int vbd_info(struct vbd *vbd)
 
 unsigned long vbd_secsize(struct vbd *vbd)
 {
-       return bdev_hardsect_size(vbd->bdev);
+       return bdev_logical_block_size(vbd->bdev);
 }
 
 int vbd_create(blkif_t *blkif, blkif_vdev_t handle, unsigned major,