Fix the wrong commit log message for r226967: "Added missing cache purge

of from argument" and fix the comment.
This commit is contained in:
Peter Holm 2011-10-31 20:24:33 +00:00
parent 6890c3a990
commit b76b6150d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226971

View File

@ -1520,6 +1520,8 @@ ufs_rename(ap)
}
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,