Skip to contentSkip to conversation

dm cache policy smq: mv module alias: dm-cache-default to SMQ

PATCH New Yi Zhang 1 participant 1 message Aug 12, 2015 Device mapper

lore
Share & tools
lore

Yi Zhang

author
#0 lore raw

PATCH 1/1 dm cache policy smq: mv module alias: dm-cache-default to SMQ

When creating dm-cache with the default policy, it will call request_module("dm-cache-default") to register the default policy. But the dm-cache-default is for dm-cache-mq which is incorrect, so move the module alias: dm-cache-default to SMQ.

---
 drivers/md/dm-cache-policy-mq.c  | 2 --
 drivers/md/dm-cache-policy-smq.c | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-cache-policy-mq.c +0 -2
index 3281437..aa1b41c 100644
@@ -1471,5 +1471,3 @@ module_exit(mq_exit);
 MODULE_AUTHOR("Joe Thornber <[email protected]>");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("mq cache policy");
-
-MODULE_ALIAS("dm-cache-default");
drivers/md/dm-cache-policy-smq.c +2 -0
index d80506c..1ffbeb1 100644
@@ -1757,3 +1757,5 @@ module_exit(smq_exit);
 MODULE_AUTHOR("Joe Thornber <[email protected]>");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("smq cache policy");
+
+MODULE_ALIAS("dm-cache-default");
Signature · 1 line
1.9.3