Commit 05d43865 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Konrad Rzeszutek Wilk

xen/blkback: deal with hardsect_size to logical_block_size rename

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent 690f1b63
...@@ -484,7 +484,7 @@ static void dispatch_rw_block_io(blkif_t *blkif, ...@@ -484,7 +484,7 @@ static void dispatch_rw_block_io(blkif_t *blkif,
for (i = 0; i < nseg; i++) { for (i = 0; i < nseg; i++) {
if (((int)preq.sector_number|(int)seg[i].nsec) & 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", DPRINTK("Misaligned I/O request from domain %d",
blkif->domid); blkif->domid);
goto fail_put_bio; goto fail_put_bio;
......
...@@ -47,7 +47,7 @@ unsigned int vbd_info(struct vbd *vbd) ...@@ -47,7 +47,7 @@ unsigned int vbd_info(struct vbd *vbd)
unsigned long vbd_secsize(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, int vbd_create(blkif_t *blkif, blkif_vdev_t handle, unsigned major,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment