X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fautofs%2Fdirhash.c;h=bf8c8af980044462ece05e7fc9772d0efb9d6c13;hb=852e1f2a2627274102a3c2dc70a6547aeab99cb6;hp=5ccfcf26310d7ac6c000541300bedaae83dd267d;hpb=486a153f0e294f7cc735838edcb6b32e623cbe52;p=linux-2.6 diff --git a/fs/autofs/dirhash.c b/fs/autofs/dirhash.c index 5ccfcf2631..bf8c8af980 100644 --- a/fs/autofs/dirhash.c +++ b/fs/autofs/dirhash.c @@ -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! */ @@ -246,5 +246,4 @@ void autofs_hash_nuke(struct autofs_sb_info *sbi) kfree(ent); } } - shrink_dcache_sb(sbi->sb); }