linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / fs / autofs / dirhash.c
index 3fded38..5ccfcf2 100644 (file)
@@ -92,7 +92,7 @@ struct autofs_dir_ent *autofs_expire(struct super_block *sb,
                        ;
                dput(dentry);
 
-               if ( may_umount(mnt) ) {
+               if ( may_umount(mnt) == 0 ) {
                        mntput(mnt);
                        DPRINTK(("autofs: signaling expire on %s\n", ent->name));
                        return ent; /* Expirable! */