summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2011-10-31 20:24:33 +0000
committerpho <pho@FreeBSD.org>2011-10-31 20:24:33 +0000
commit36895fc179dc20b02a029c2ae7b5c14761f4c70e (patch)
tree0838302fc6a03e2abd7eec56cb0614bc5c443082 /sys/ufs
parentf11a5665c1ce07407e300f998229993c62f2c9d2 (diff)
downloadFreeBSD-src-36895fc179dc20b02a029c2ae7b5c14761f4c70e.zip
FreeBSD-src-36895fc179dc20b02a029c2ae7b5c14761f4c70e.tar.gz
Fix the wrong commit log message for r226967: "Added missing cache purge
of from argument" and fix the comment.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_vnops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 105bdaf..171ef75 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1520,6 +1520,8 @@ relock:
}
error = ufs_dirremove(fdvp, fip, fcnp->cn_flags, 0);
/*
+ * The kern_renameat() looks up the fvp using the DELETE flag, which
+ * causes the removal of the name cache entry for fvp.
* As the relookup of the fvp is done in two steps:
* ufs_lookup_ino() and then VFS_VGET(), another thread might do a
* normal lookup of the from name just before the VFS_VGET() call,
OpenPOWER on IntegriCloud