]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs/dirhash.c
[PATCH] autofs4: change may_umount* functions to boolean
[linux-2.6-omap-h63xx.git] / fs / autofs / dirhash.c
index 5ccfcf26310d7ac6c000541300bedaae83dd267d..3fded389d06b9fe1e1d8df20f08ac541b87f9bb1 100644 (file)
@@ -92,7 +92,7 @@ struct autofs_dir_ent *autofs_expire(struct super_block *sb,
                        ;
                dput(dentry);
 
-               if ( may_umount(mnt) == 0 ) {
+               if ( may_umount(mnt) ) {
                        mntput(mnt);
                        DPRINTK(("autofs: signaling expire on %s\n", ent->name));
                        return ent; /* Expirable! */