summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4filelayout.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-07-16 01:18:42 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-16 01:21:58 +0200
commitf85ef69ce08bc2209858135328335f668ba35bdb (patch)
tree9612b8f94bca48287cd03f807e4308b4efc5e5b9 /fs/nfs/nfs4filelayout.c
parentnfs: document nfsv4 sillyrename issues (diff)
downloadlinux-f85ef69ce08bc2209858135328335f668ba35bdb.tar.xz
linux-f85ef69ce08bc2209858135328335f668ba35bdb.zip
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/nfs4filelayout.c')
-rw-r--r--fs/nfs/nfs4filelayout.c2
1 files changed, 2 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)
pnfs_unregister_layoutdriver(&filelayout_type);
}
+MODULE_ALIAS("nfs-layouttype4-1");
+
module_init(nfs4filelayout_init);
module_exit(nfs4filelayout_exit);