diff options
author | kib <kib@FreeBSD.org> | 2013-03-17 15:11:37 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-03-17 15:11:37 +0000 |
commit | 1b20f7cc1854e8167f6e8ae75c8636919e7b176e (patch) | |
tree | ac3c0909c299d5435a2df9f5b1d45d88264d8fc8 /sys/fs/tmpfs | |
parent | 338f6e587c1344da33c4c32894447d1d4257e330 (diff) | |
download | FreeBSD-src-1b20f7cc1854e8167f6e8ae75c8636919e7b176e.zip FreeBSD-src-1b20f7cc1854e8167f6e8ae75c8636919e7b176e.tar.gz |
Remove negative name cache entry pointing to the target name, which
could be instantiated while tdvp was unlocked.
Reported by: Rick Miller <vmiller at hostileadmin com>
Tested by: pho
MFC after: 1 week
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 54c95ff..156fd43 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -1297,6 +1297,7 @@ tmpfs_rename(struct vop_rename_args *v) cache_purge(fvp); if (tvp != NULL) cache_purge(tvp); + cache_purge_negative(tdvp); error = 0; |