summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/fs/msdosfs/msdosfs_vnops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
index e9c593bdc0ce..81a76e45fc73 100644
--- a/sys/fs/msdosfs/msdosfs_vnops.c
+++ b/sys/fs/msdosfs/msdosfs_vnops.c
@@ -1270,6 +1270,14 @@ abortit:
}
}
+ /*
+ * The msdosfs lookup is case insensitive. Several aliases may
+ * be inserted for a single directory entry. As a consequnce,
+ * name cache purge done by lookup for fvp when DELETE op for
+ * namei is specified, might be not enough to expunge all
+ * namecache entries that were installed for this direntry.
+ */
+ cache_purge(fvp);
VOP_UNLOCK(fvp, 0);
bad:
if (xp)