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>
This commit is contained in:
@@ -479,7 +479,7 @@ int autofs4_expire_multi(struct super_block *sb, struct vfsmount *mnt,
|
||||
if (arg && get_user(do_now, arg))
|
||||
return -EFAULT;
|
||||
|
||||
if (sbi->type & AUTOFS_TYPE_DIRECT)
|
||||
if (sbi->type & AUTOFS_TYPE_TRIGGER)
|
||||
dentry = autofs4_expire_direct(sb, mnt, sbi, do_now);
|
||||
else
|
||||
dentry = autofs4_expire_indirect(sb, mnt, sbi, do_now);
|
||||
|
Reference in New Issue
Block a user