aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs/init.c
diff options
context:
space:
mode:
authorIan Kent <[email protected]>2023-09-22 04:12:14 +0000
committerChristian Brauner <[email protected]>2023-09-22 12:08:02 +0000
commite6ec453bd0f03a60a80f00f95ae2eaa260faa3c2 (patch)
tree0ce43441bb01c7a7d919bc6587695905a7f975b8 /fs/autofs/init.c
parentautofs: validate protocol version (diff)
downloadkernel-e6ec453bd0f03a60a80f00f95ae2eaa260faa3c2.tar.gz
kernel-e6ec453bd0f03a60a80f00f95ae2eaa260faa3c2.zip
autofs: convert autofs to use the new mount api
Convert the autofs filesystem to use the mount API. The conversion patch was originally written by David Howells. I have taken that patch and broken it into several patches in an effort to make the change easier to review. Signed-off-by: Ian Kent <[email protected]> Reviewed-by: Bill O'Donnell <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/autofs/init.c')
-rw-r--r--fs/autofs/init.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/autofs/init.c b/fs/autofs/init.c
index d3f55e874338..b5e4dfa04ed0 100644
--- a/fs/autofs/init.c
+++ b/fs/autofs/init.c
@@ -7,16 +7,11 @@
#include <linux/init.h>
#include "autofs_i.h"
-static struct dentry *autofs_mount(struct file_system_type *fs_type,
- int flags, const char *dev_name, void *data)
-{
- return mount_nodev(fs_type, flags, data, autofs_fill_super);
-}
-
struct file_system_type autofs_fs_type = {
.owner = THIS_MODULE,
.name = "autofs",
- .mount = autofs_mount,
+ .init_fs_context = autofs_init_fs_context,
+ .parameters = autofs_param_specs,
.kill_sb = autofs_kill_sb,
};
MODULE_ALIAS_FS("autofs");