Remove private parameter from cas_disk_open()
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
6d2266f7ee
commit
8945b482ce
@ -96,7 +96,7 @@ static int _cas_disk_init_kobject(struct cas_disk *dsk)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct cas_disk *cas_disk_open(const char *path, void *private)
|
struct cas_disk *cas_disk_open(const char *path)
|
||||||
{
|
{
|
||||||
struct cas_disk *dsk;
|
struct cas_disk *dsk;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
@ -127,8 +127,6 @@ struct cas_disk *cas_disk_open(const char *path, void *private)
|
|||||||
goto error_open_bdev;
|
goto error_open_bdev;
|
||||||
}
|
}
|
||||||
|
|
||||||
dsk->private = private;
|
|
||||||
|
|
||||||
dsk->id = cas_module.next_disk_id++;
|
dsk->id = cas_module.next_disk_id++;
|
||||||
|
|
||||||
result = _cas_disk_init_kobject(dsk);
|
result = _cas_disk_init_kobject(dsk);
|
||||||
|
@ -43,10 +43,9 @@ int cas_disk_allocate_minors(int count);
|
|||||||
/**
|
/**
|
||||||
* @brief Open block device
|
* @brief Open block device
|
||||||
* @param path Path to block device
|
* @param path Path to block device
|
||||||
* @param private Private data
|
|
||||||
* @return Pointer to cas_disk related to opened block device
|
* @return Pointer to cas_disk related to opened block device
|
||||||
*/
|
*/
|
||||||
struct cas_disk *cas_disk_open(const char *path, void *private);
|
struct cas_disk *cas_disk_open(const char *path);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Close block device and remove from cas
|
* @brief Close block device and remove from cas
|
||||||
|
@ -35,7 +35,7 @@ int block_dev_open_object(ocf_volume_t vol, void *volume_params)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
dsk = cas_disk_open(uuid->data, NULL);
|
dsk = cas_disk_open(uuid->data);
|
||||||
if (IS_ERR_OR_NULL(dsk)) {
|
if (IS_ERR_OR_NULL(dsk)) {
|
||||||
int error = PTR_ERR(dsk) ?: -EINVAL;
|
int error = PTR_ERR(dsk) ?: -EINVAL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user