diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-17 02:55:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:46 -0400 |
commit | 54bf586e1f51018ba7624c851e7aa14cee0548d2 (patch) | |
tree | 5324f4c69bc03f0a60e83cfab0bfdffbc07932a7 | |
parent | ca7068c41a8d48ef35d1a3bba422ebcedace8513 (diff) |
autofs: set things up *before* registering fs type
it's not a serious race, but we really want misc device before anybody
gets to mount this sucker.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/autofs4/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs4/init.c b/fs/autofs4/init.c index c038727b4050..cddc74b9cdb2 100644 --- a/fs/autofs4/init.c +++ b/fs/autofs4/init.c | |||
@@ -31,11 +31,11 @@ static int __init init_autofs4_fs(void) | |||
31 | { | 31 | { |
32 | int err; | 32 | int err; |
33 | 33 | ||
34 | autofs_dev_ioctl_init(); | ||
35 | |||
34 | err = register_filesystem(&autofs_fs_type); | 36 | err = register_filesystem(&autofs_fs_type); |
35 | if (err) | 37 | if (err) |
36 | return err; | 38 | autofs_dev_ioctl_exit(); |
37 | |||
38 | autofs_dev_ioctl_init(); | ||
39 | 39 | ||
40 | return err; | 40 | return err; |
41 | } | 41 | } |