aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r--fs/autofs4/inode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c
index 75c1ed8e2fb9..dac3dc79ccb4 100644
--- a/fs/autofs4/inode.c
+++ b/fs/autofs4/inode.c
@@ -326,9 +326,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
326 __managed_dentry_set_managed(root); 326 __managed_dentry_set_managed(root);
327 327
328 root_inode->i_fop = &autofs4_root_operations; 328 root_inode->i_fop = &autofs4_root_operations;
329 root_inode->i_op = autofs_type_trigger(sbi->type) ? 329 root_inode->i_op = &autofs4_dir_inode_operations;
330 &autofs4_direct_root_inode_operations :
331 &autofs4_indirect_root_inode_operations;
332 330
333 /* Couldn't this be tested earlier? */ 331 /* Couldn't this be tested earlier? */
334 if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION || 332 if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION ||