]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs4/expire.c
[PATCH] autofs4: avoid panic on bind mount of autofs owned directory
[linux-2.6-omap-h63xx.git] / fs / autofs4 / expire.c
index 500425e24fba9178c13db5550a7f9271256249d4..feb6ac427d058b8a1c02b420bbe6ad81ffd581aa 100644 (file)
@@ -56,12 +56,9 @@ static int autofs4_check_mount(struct vfsmount *mnt, struct dentry *dentry)
        mntget(mnt);
        dget(dentry);
 
-       if (!follow_down(&mnt, &dentry))
+       if (!autofs4_follow_mount(&mnt, &dentry))
                goto done;
 
-       while (d_mountpoint(dentry) && follow_down(&mnt, &dentry))
-               ;
-
        /* This is an autofs submount, we can't expire it */
        if (is_autofs4_dentry(dentry))
                goto done;