lightnvm: rename nvm_targets to nvm_tgt_type
The functions nvm_register_target(), nvm_unregister_target() and associated list refers to a target type that is being registered by a target type module. Rename nvm_*_targets() to nvm_*_tgt_type(), so that the intension is clear. This enables target instances to use the _nvm_*_targets() naming. Signed-off-by: Simon A. F. Lund <slund@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
此提交包含在:
@@ -1469,12 +1469,12 @@ static struct nvm_tgt_type tt_rrpc = {
|
||||
|
||||
static int __init rrpc_module_init(void)
|
||||
{
|
||||
return nvm_register_target(&tt_rrpc);
|
||||
return nvm_register_tgt_type(&tt_rrpc);
|
||||
}
|
||||
|
||||
static void rrpc_module_exit(void)
|
||||
{
|
||||
nvm_unregister_target(&tt_rrpc);
|
||||
nvm_unregister_tgt_type(&tt_rrpc);
|
||||
}
|
||||
|
||||
module_init(rrpc_module_init);
|
||||
|
新增問題並參考
封鎖使用者