- Pass LK_EXCLUSIVE as the lock type to vget in vfs_hash_insert().

This commit is contained in:
Jeff Roberson 2005-03-25 10:51:55 +00:00
parent 710fa1d820
commit 7d2832e654

View file

@ -159,7 +159,8 @@ deget(pmp, dirclust, diroffset, depp)
ldep->de_diroffset = diroffset;
fc_purge(ldep, 0); /* init the fat cache for this denode */
error = vfs_hash_insert(nvp, hash, 0, curthread, &xvp, NULL, NULL);
error = vfs_hash_insert(nvp, hash, LK_EXCLUSIVE, curthread, &xvp,
NULL, NULL);
if (error) {
*depp = NULL;
return (error);