1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144103

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);