Skip to content

Commit

Permalink
xen/blkback: deal with hardsect_size to logical_block_size rename
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge authored and Konrad Rzeszutek Wilk committed Apr 14, 2011
1 parent 690f1b6 commit 05d4386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/xen/blkback/blkback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/xen/blkback/vbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 05d4386

Please sign in to comment.