summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2011-11-01 12:33:06 +0000
committerpho <pho@FreeBSD.org>2011-11-01 12:33:06 +0000
commitd08a02f709c03ad61dd57d1fa39412d6de62189d (patch)
tree804c92b7ee989faacdebca3d5ea44abea2d0bec8 /sys/fs/tmpfs
parent705fefeaf98a849857edd3dc612c34b43d583e8e (diff)
downloadFreeBSD-src-d08a02f709c03ad61dd57d1fa39412d6de62189d.zip
FreeBSD-src-d08a02f709c03ad61dd57d1fa39412d6de62189d.tar.gz
Added missing cache purge of from argument for rename().
Reported by: Anton Yuzhaninov <citrin citrin ru> In collaboration with: kib MFC after: 1 week
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_vnops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 74aba04..6f52491 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -1138,6 +1138,7 @@ tmpfs_rename(struct vop_rename_args *v)
* really reclaimed. */
tmpfs_free_dirent(VFS_TO_TMPFS(tvp->v_mount), de, TRUE);
}
+ cache_purge(fvp);
error = 0;
OpenPOWER on IntegriCloud