Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249117
b: refs/heads/master
c: 349b38e
h: refs/heads/master
i:
  249115: 04dde29
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent 095002d commit 86daa75
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 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: 583c367fdf66d61e04898ee31c46c07a9a9a4434
refs/heads/master: 349b38e8dfbf79e093e22a606f637a19c1b857fa
31 changes: 15 additions & 16 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,23 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev)
return 0;
}

static int blkvsc_revalidate_disk(struct gendisk *gd)
{
struct block_device_context *blkdev = gd->private_data;

DPRINT_DBG(BLKVSC_DRV, "- enter\n");

if (blkdev->device_type == DVD_TYPE) {
blkvsc_do_read_capacity(blkdev);
set_capacity(blkdev->gd, blkdev->capacity *
(blkdev->sector_size/512));
blk_queue_logical_block_size(gd->queue, blkdev->sector_size);
}
return 0;
}

/* Static decl */
static int blkvsc_probe(struct device *dev);
static int blkvsc_revalidate_disk(struct gendisk *gd);
static void blkvsc_request(struct request_queue *queue);
static void blkvsc_request_completion(struct hv_storvsc_request *request);
static int blkvsc_do_request(struct block_device_context *blkdev,
Expand Down Expand Up @@ -1504,21 +1518,6 @@ static void blkvsc_request(struct request_queue *queue)
}
}

static int blkvsc_revalidate_disk(struct gendisk *gd)
{
struct block_device_context *blkdev = gd->private_data;

DPRINT_DBG(BLKVSC_DRV, "- enter\n");

if (blkdev->device_type == DVD_TYPE) {
blkvsc_do_read_capacity(blkdev);
set_capacity(blkdev->gd, blkdev->capacity *
(blkdev->sector_size/512));
blk_queue_logical_block_size(gd->queue, blkdev->sector_size);
}
return 0;
}

static int __init blkvsc_init(void)
{
int ret;
Expand Down

0 comments on commit 86daa75

Please sign in to comment.