aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/autofs4/autofs_i.h6
-rw-r--r--fs/autofs4/expire.c2
-rw-r--r--fs/autofs4/inode.c12
-rw-r--r--fs/autofs4/waitq.c6
4 files changed, 13 insertions, 13 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h
index 37c8d909d1e9..ff6239d57b4b 100644
--- a/fs/autofs4/autofs_i.h
+++ b/fs/autofs4/autofs_i.h
@@ -91,9 +91,9 @@ struct autofs_wait_queue {
91 91
92#define AUTOFS_SBI_MAGIC 0x6d4a556d 92#define AUTOFS_SBI_MAGIC 0x6d4a556d
93 93
94#define AUTOFS_TYP_INDIRECT 0x0001 94#define AUTOFS_TYPE_INDIRECT 0x0001
95#define AUTOFS_TYP_DIRECT 0x0002 95#define AUTOFS_TYPE_DIRECT 0x0002
96#define AUTOFS_TYP_OFFSET 0x0004 96#define AUTOFS_TYPE_OFFSET 0x0004
97 97
98struct autofs_sb_info { 98struct autofs_sb_info {
99 u32 magic; 99 u32 magic;
diff --git a/fs/autofs4/expire.c b/fs/autofs4/expire.c
index 8fd92eaf936d..08e33218a64a 100644
--- a/fs/autofs4/expire.c
+++ b/fs/autofs4/expire.c
@@ -424,7 +424,7 @@ int autofs4_expire_multi(struct super_block *sb, struct vfsmount *mnt,
424 if (arg && get_user(do_now, arg)) 424 if (arg && get_user(do_now, arg))
425 return -EFAULT; 425 return -EFAULT;
426 426
427 if (sbi->type & AUTOFS_TYP_DIRECT) 427 if (sbi->type & AUTOFS_TYPE_DIRECT)
428 dentry = autofs4_expire_direct(sb, mnt, sbi, do_now); 428 dentry = autofs4_expire_direct(sb, mnt, sbi, do_now);
429 else 429 else
430 dentry = autofs4_expire_indirect(sb, mnt, sbi, do_now); 430 dentry = autofs4_expire_indirect(sb, mnt, sbi, do_now);
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c
index 3801bed94e45..943888905493 100644
--- a/fs/autofs4/inode.c
+++ b/fs/autofs4/inode.c
@@ -178,9 +178,9 @@ static int autofs4_show_options(struct seq_file *m, struct vfsmount *mnt)
178 seq_printf(m, ",minproto=%d", sbi->min_proto); 178 seq_printf(m, ",minproto=%d", sbi->min_proto);
179 seq_printf(m, ",maxproto=%d", sbi->max_proto); 179 seq_printf(m, ",maxproto=%d", sbi->max_proto);
180 180
181 if (sbi->type & AUTOFS_TYP_OFFSET) 181 if (sbi->type & AUTOFS_TYPE_OFFSET)
182 seq_printf(m, ",offset"); 182 seq_printf(m, ",offset");
183 else if (sbi->type & AUTOFS_TYP_DIRECT) 183 else if (sbi->type & AUTOFS_TYPE_DIRECT)
184 seq_printf(m, ",direct"); 184 seq_printf(m, ",direct");
185 else 185 else
186 seq_printf(m, ",indirect"); 186 seq_printf(m, ",indirect");
@@ -267,13 +267,13 @@ static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid,
267 *maxproto = option; 267 *maxproto = option;
268 break; 268 break;
269 case Opt_indirect: 269 case Opt_indirect:
270 *type = AUTOFS_TYP_INDIRECT; 270 *type = AUTOFS_TYPE_INDIRECT;
271 break; 271 break;
272 case Opt_direct: 272 case Opt_direct:
273 *type = AUTOFS_TYP_DIRECT; 273 *type = AUTOFS_TYPE_DIRECT;
274 break; 274 break;
275 case Opt_offset: 275 case Opt_offset:
276 *type = AUTOFS_TYP_DIRECT | AUTOFS_TYP_OFFSET; 276 *type = AUTOFS_TYPE_DIRECT | AUTOFS_TYPE_OFFSET;
277 break; 277 break;
278 default: 278 default:
279 return 1; 279 return 1;
@@ -364,7 +364,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
364 } 364 }
365 365
366 root_inode->i_fop = &autofs4_root_operations; 366 root_inode->i_fop = &autofs4_root_operations;
367 root_inode->i_op = sbi->type & AUTOFS_TYP_DIRECT ? 367 root_inode->i_op = sbi->type & AUTOFS_TYPE_DIRECT ?
368 &autofs4_direct_root_inode_operations : 368 &autofs4_direct_root_inode_operations :
369 &autofs4_indirect_root_inode_operations; 369 &autofs4_indirect_root_inode_operations;
370 370
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index 12da2c977b0a..894d74671bd0 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -207,7 +207,7 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
207 return -ENOMEM; 207 return -ENOMEM;
208 208
209 /* If this is a direct mount request create a dummy name */ 209 /* If this is a direct mount request create a dummy name */
210 if (IS_ROOT(dentry) && (sbi->type & AUTOFS_TYP_DIRECT)) 210 if (IS_ROOT(dentry) && (sbi->type & AUTOFS_TYPE_DIRECT))
211 len = sprintf(name, "%p", dentry); 211 len = sprintf(name, "%p", dentry);
212 else { 212 else {
213 len = autofs4_getpath(sbi, dentry, &name); 213 len = autofs4_getpath(sbi, dentry, &name);
@@ -283,11 +283,11 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
283 type = autofs_ptype_expire_multi; 283 type = autofs_ptype_expire_multi;
284 } else { 284 } else {
285 if (notify == NFY_MOUNT) 285 if (notify == NFY_MOUNT)
286 type = (sbi->type & AUTOFS_TYP_DIRECT) ? 286 type = (sbi->type & AUTOFS_TYPE_DIRECT) ?
287 autofs_ptype_missing_direct : 287 autofs_ptype_missing_direct :
288 autofs_ptype_missing_indirect; 288 autofs_ptype_missing_indirect;
289 else 289 else
290 type = (sbi->type & AUTOFS_TYP_DIRECT) ? 290 type = (sbi->type & AUTOFS_TYPE_DIRECT) ?
291 autofs_ptype_expire_direct : 291 autofs_ptype_expire_direct :
292 autofs_ptype_expire_indirect; 292 autofs_ptype_expire_indirect;
293 } 293 }