Use lookup_bdev generated macro instead of direct call
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
parent
47647a890f
commit
3ca9a14bb2
@ -453,7 +453,7 @@ int cache_mngt_prepare_core_cfg(struct ocf_mngt_core_config *cfg,
|
||||
return 0;
|
||||
}
|
||||
|
||||
bdev = lookup_bdev(cfg->uuid.data);
|
||||
bdev = CAS_LOOKUP_BDEV(cfg->uuid.data);
|
||||
if (IS_ERR(bdev))
|
||||
return -OCF_ERR_INVAL_VOLUME_TYPE;
|
||||
bdput(bdev);
|
||||
|
Loading…
Reference in New Issue
Block a user