Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251203
b: refs/heads/master
c: 05d4386
h: refs/heads/master
i:
  251201: 502c00d
  251199: 6591702
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Konrad Rzeszutek Wilk committed Apr 14, 2011
1 parent 2f69cfe commit 2a80a93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: 690f1b63b2db88330834d8482f3b125990c8e609
refs/heads/master: 05d43865ddc00bdb33d12c8e9d9f176ed5d3797b
2 changes: 1 addition & 1 deletion trunk/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 trunk/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 2a80a93

Please sign in to comment.