浏览代码

pnfs: simplify pnfs files module autoloading

Embed the necessary alias into the module rather than waiting for
someone to add it to /etc/modprobe.conf

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
J. Bruce Fields 14 年之前
父节点
当前提交
f85ef69ce0
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      fs/nfs/nfs4filelayout.c
  2. 2 0
      fs/nfs/objlayout/objio_osd.c

+ 2 - 0
fs/nfs/nfs4filelayout.c

@@ -964,5 +964,7 @@ static void __exit nfs4filelayout_exit(void)
 	pnfs_unregister_layoutdriver(&filelayout_type);
 }
 
+MODULE_ALIAS("nfs-layouttype4-1");
+
 module_init(nfs4filelayout_init);
 module_exit(nfs4filelayout_exit);

+ 2 - 0
fs/nfs/objlayout/objio_osd.c

@@ -1065,5 +1065,7 @@ objlayout_exit(void)
 	       __func__);
 }
 
+MODULE_ALIAS("nfs-layouttype4-2");
+
 module_init(objlayout_init);
 module_exit(objlayout_exit);