Skip to content

Commit f85ef69

Browse files
J. Bruce FieldsTrond Myklebust
authored andcommitted
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>
1 parent 674e405 commit f85ef69

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎fs/nfs/nfs4filelayout.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,5 +964,7 @@ static void __exit nfs4filelayout_exit(void)
964964
pnfs_unregister_layoutdriver(&filelayout_type);
965965
}
966966

967+
MODULE_ALIAS("nfs-layouttype4-1");
968+
967969
module_init(nfs4filelayout_init);
968970
module_exit(nfs4filelayout_exit);

‎fs/nfs/objlayout/objio_osd.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,5 +1065,7 @@ objlayout_exit(void)
10651065
__func__);
10661066
}
10671067

1068+
MODULE_ALIAS("nfs-layouttype4-2");
1069+
10681070
module_init(objlayout_init);
10691071
module_exit(objlayout_exit);

0 commit comments

Comments
 (0)