diff options
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r-- | fs/autofs4/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 45d55819203d..7303099fcc1a 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -288,7 +288,7 @@ static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, | |||
288 | *type = AUTOFS_TYPE_DIRECT; | 288 | *type = AUTOFS_TYPE_DIRECT; |
289 | break; | 289 | break; |
290 | case Opt_offset: | 290 | case Opt_offset: |
291 | *type = AUTOFS_TYPE_DIRECT | AUTOFS_TYPE_OFFSET; | 291 | *type = AUTOFS_TYPE_OFFSET; |
292 | break; | 292 | break; |
293 | default: | 293 | default: |
294 | return 1; | 294 | return 1; |
@@ -336,7 +336,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
336 | sbi->sb = s; | 336 | sbi->sb = s; |
337 | sbi->version = 0; | 337 | sbi->version = 0; |
338 | sbi->sub_version = 0; | 338 | sbi->sub_version = 0; |
339 | sbi->type = 0; | 339 | sbi->type = AUTOFS_TYPE_INDIRECT; |
340 | sbi->min_proto = 0; | 340 | sbi->min_proto = 0; |
341 | sbi->max_proto = 0; | 341 | sbi->max_proto = 0; |
342 | mutex_init(&sbi->wq_mutex); | 342 | mutex_init(&sbi->wq_mutex); |
@@ -378,7 +378,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
378 | } | 378 | } |
379 | 379 | ||
380 | root_inode->i_fop = &autofs4_root_operations; | 380 | root_inode->i_fop = &autofs4_root_operations; |
381 | root_inode->i_op = sbi->type & AUTOFS_TYPE_DIRECT ? | 381 | root_inode->i_op = sbi->type & AUTOFS_TYPE_TRIGGER ? |
382 | &autofs4_direct_root_inode_operations : | 382 | &autofs4_direct_root_inode_operations : |
383 | &autofs4_indirect_root_inode_operations; | 383 | &autofs4_indirect_root_inode_operations; |
384 | 384 | ||