autofs-5.0.1 - dont check null cache on expire From: Ian Kent <raven@themaw.net> When expiring an entry there is no need to check the null map entry cache. If we have a mount then it must have been done at some point when the entry was not a nulled so it still needs to be expired. Remove this check. --- daemon/automount.c | 9 --------- 1 file changed, 9 deletions(-) --- autofs-5.0.1.orig/daemon/automount.c +++ autofs-5.0.1/daemon/automount.c @@ -518,20 +518,11 @@ static int umount_subtree_mounts(struct it also tries to umount path itself */ int umount_multi(struct autofs_point *ap, const char *path, int incl) { - struct mapent_cache *nc; int is_autofs_fs; int left; debug(ap->logopt, "path %s incl %d", path, incl); - nc = ap->entry->master->nc; - cache_readlock(nc); - if (cache_lookup_distinct(nc, path)) { - cache_unlock(nc); - return 0; - } - cache_unlock(nc); - is_autofs_fs = 0; if (master_find_submount(ap, path)) is_autofs_fs = 1;