diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-07-15 19:18:42 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-15 19:21:58 -0400 |
commit | f85ef69ce08bc2209858135328335f668ba35bdb (patch) | |
tree | 9612b8f94bca48287cd03f807e4308b4efc5e5b9 /fs/nfs | |
parent | 674e405b8b3310702fd43d314f5f432ec2cb9980 (diff) |
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 2 | ||||
-rw-r--r-- | fs/nfs/objlayout/objio_osd.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index f0b37e155ce3..be93a622872c 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -964,5 +964,7 @@ static void __exit nfs4filelayout_exit(void) | |||
964 | pnfs_unregister_layoutdriver(&filelayout_type); | 964 | pnfs_unregister_layoutdriver(&filelayout_type); |
965 | } | 965 | } |
966 | 966 | ||
967 | MODULE_ALIAS("nfs-layouttype4-1"); | ||
968 | |||
967 | module_init(nfs4filelayout_init); | 969 | module_init(nfs4filelayout_init); |
968 | module_exit(nfs4filelayout_exit); | 970 | module_exit(nfs4filelayout_exit); |
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c index 7d49bb160b46..9383ca7245bc 100644 --- a/fs/nfs/objlayout/objio_osd.c +++ b/fs/nfs/objlayout/objio_osd.c | |||
@@ -1065,5 +1065,7 @@ objlayout_exit(void) | |||
1065 | __func__); | 1065 | __func__); |
1066 | } | 1066 | } |
1067 | 1067 | ||
1068 | MODULE_ALIAS("nfs-layouttype4-2"); | ||
1069 | |||
1068 | module_init(objlayout_init); | 1070 | module_init(objlayout_init); |
1069 | module_exit(objlayout_exit); | 1071 | module_exit(objlayout_exit); |