diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-05-10 07:56:01 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-11 13:49:24 -0700 |
commit | fa4d123a1f893b2d902a8844a0b1166bec56c180 (patch) | |
tree | 0d677480cfe7e50e929aa5bc3589c7a09b608b02 /drivers/staging/hv/blkvsc_drv.c | |
parent | 85cf3a986e0b7b00230e1393ca55a4db216cc1ad (diff) | |
download | op-kernel-dev-fa4d123a1f893b2d902a8844a0b1166bec56c180.zip op-kernel-dev-fa4d123a1f893b2d902a8844a0b1166bec56c180.tar.gz |
Staging: hv: Use the rinbuffer size info in struct storvsc_device_info
Use the rinbuffer size info in struct storvsc_device_info.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/blkvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/blkvsc_drv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index 8721dbc..0038a97 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -146,6 +146,8 @@ static int blkvsc_device_add(struct hv_device *device, device_info = (struct storvsc_device_info *)additional_info; + device_info->ring_buffer_size = blkvsc_ringbuffer_size; + ret = storvsc_dev_add(device, additional_info); if (ret != 0) return ret; @@ -818,14 +820,11 @@ static const struct block_device_operations block_ops = { */ static int blkvsc_drv_init(void) { - struct storvsc_driver *storvsc_drv = &blkvsc_drv; struct hv_driver *drv = &blkvsc_drv.base; int ret; BUILD_BUG_ON(sizeof(sector_t) != 8); - storvsc_drv->ring_buffer_size = blkvsc_ringbuffer_size; - memcpy(&drv->dev_type, &dev_type, sizeof(struct hv_guid)); drv->name = drv_name; drv->driver.name = drv_name; |