summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-12-01 22:13:34 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-12-01 22:13:34 +0000
commit55f3ffd7aeabb6a0b86630d460a52b12ed1e7c60 (patch)
treedbfd9cab6fea4806eeceb4ffe3f13e5346ab227e /sys
parent152345785d0c3ba47071b1bf0a190cdbc7ff2c4b (diff)
Add missing cache_purge() in msdosfs_rename().
Spotted by tedu@, okay tom@ and tedu@.
Diffstat (limited to 'sys')
-rw-r--r--sys/msdosfs/msdosfs_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index 29b0a7f29e0..8743f04f75e 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.55 2005/11/19 02:18:01 pedro Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.56 2005/12/01 22:13:33 pedro Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -1151,6 +1151,9 @@ abortit:
VOP_UNLOCK(fdvp, 0, p);
goto bad;
}
+
+ cache_purge(fvp);
+
if (!doingdirectory) {
error = pcbmap(dp, de_cluster(pmp, to_diroffset), 0,
&ip->de_dirclust, 0);