@@ -873,6 +873,7 @@ static struct pnfs_layoutdriver_type filelayout_type = {
.read_pagelist = filelayout_read_pagelist,
.write_pagelist = filelayout_write_pagelist,
};
+NFSV4_LAYOUT_MODULE_ALIAS(LAYOUT_NFSV4_1_FILES);
static int __init nfs4filelayout_init(void)
{
@@ -55,6 +55,8 @@ enum pnfs_try_status {
#ifdef CONFIG_NFS_V4_1
#define LAYOUT_NFSV4_1_MODULE_PREFIX "nfs-layouttype4"
+#define NFSV4_LAYOUT_MODULE_ALIAS(id) \
+ MODULE_ALIAS(LAYOUT_NFSV4_1_MODULE_PREFIX "-" #id)
enum {
NFS_LAYOUT_RO_FAILED = 0, /* get ro layout failed stop trying */