X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fautofs4%2Fexpire.c;h=b8ce02607d66bacd03d60acad9b99ffd9e48d7d2;hb=4fa639123d9e6e8dfaa3d116368f4b2478da31af;hp=8fd92eaf936d2701d292fcc1d4deafeacd6024f0;hpb=3a15e2ab5d6e79a79291734ac24f33d51c0ae389;p=linux-2.6 diff --git a/fs/autofs4/expire.c b/fs/autofs4/expire.c index 8fd92eaf93..b8ce02607d 100644 --- a/fs/autofs4/expire.c +++ b/fs/autofs4/expire.c @@ -113,10 +113,6 @@ static int autofs4_direct_busy(struct vfsmount *mnt, DPRINTK("top %p %.*s", top, (int) top->d_name.len, top->d_name.name); - /* Not a mountpoint - give up */ - if (!d_mountpoint(top)) - return 1; - /* If it's busy update the expiry counters */ if (!may_umount_tree(mnt)) { struct autofs_info *ino = autofs4_dentry_ino(top); @@ -424,7 +420,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_TYP_DIRECT) + if (sbi->type & AUTOFS_TYPE_DIRECT) dentry = autofs4_expire_direct(sb, mnt, sbi, do_now); else dentry = autofs4_expire_indirect(sb, mnt, sbi, do_now);