Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f85ef69c authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Trond Myklebust
Browse files

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: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 674e405b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -964,5 +964,7 @@ static void __exit nfs4filelayout_exit(void)
	pnfs_unregister_layoutdriver(&filelayout_type);
	pnfs_unregister_layoutdriver(&filelayout_type);
}
}


MODULE_ALIAS("nfs-layouttype4-1");

module_init(nfs4filelayout_init);
module_init(nfs4filelayout_init);
module_exit(nfs4filelayout_exit);
module_exit(nfs4filelayout_exit);
+2 −0
Original line number Original line Diff line number Diff line
@@ -1065,5 +1065,7 @@ objlayout_exit(void)
	       __func__);
	       __func__);
}
}


MODULE_ALIAS("nfs-layouttype4-2");

module_init(objlayout_init);
module_init(objlayout_init);
module_exit(objlayout_exit);
module_exit(objlayout_exit);