diff options
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r-- | fs/autofs4/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 3ecd2e2bcdbd..9e1a9dad23e1 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -276,6 +276,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
276 | s->s_blocksize_bits = 10; | 276 | s->s_blocksize_bits = 10; |
277 | s->s_magic = AUTOFS_SUPER_MAGIC; | 277 | s->s_magic = AUTOFS_SUPER_MAGIC; |
278 | s->s_op = &autofs4_sops; | 278 | s->s_op = &autofs4_sops; |
279 | s->s_d_op = &autofs4_dentry_operations; | ||
279 | s->s_time_gran = 1; | 280 | s->s_time_gran = 1; |
280 | 281 | ||
281 | /* | 282 | /* |
@@ -293,7 +294,6 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
293 | goto fail_iput; | 294 | goto fail_iput; |
294 | pipe = NULL; | 295 | pipe = NULL; |
295 | 296 | ||
296 | d_set_d_op(root, &autofs4_dentry_operations); | ||
297 | root->d_fsdata = ino; | 297 | root->d_fsdata = ino; |
298 | 298 | ||
299 | /* Can this call block? */ | 299 | /* Can this call block? */ |
@@ -304,10 +304,8 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
304 | goto fail_dput; | 304 | goto fail_dput; |
305 | } | 305 | } |
306 | 306 | ||
307 | if (autofs_type_trigger(sbi->type)) { | 307 | if (autofs_type_trigger(sbi->type)) |
308 | d_set_d_op(root, &autofs4_mount_dentry_operations); | ||
309 | __managed_dentry_set_managed(root); | 308 | __managed_dentry_set_managed(root); |
310 | } | ||
311 | 309 | ||
312 | root_inode->i_fop = &autofs4_root_operations; | 310 | root_inode->i_fop = &autofs4_root_operations; |
313 | root_inode->i_op = &autofs4_dir_inode_operations; | 311 | root_inode->i_op = &autofs4_dir_inode_operations; |