aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/inode.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2008-10-16 01:02:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 14:21:39 -0400
commitbb979d7fc360bc37cbaff43a6fafceb897cb5e47 (patch)
treeb99f90b4cacebf1e8cd5725917fd14cf8d1c50ac /fs/autofs4/inode.c
parent624ae5284516870657505103ada531c64dba2a9a (diff)
autofs4: cleanup autofs mount type usage
Usage of the AUTOFS_TYPE_* defines is a little confusing and appears inconsistent. Signed-off-by: Ian Kent <raven@themaw.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r--fs/autofs4/inode.c6
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