mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Pass LK_EXCLUSIVE as the lock type to vget in vfs_hash_insert().
This commit is contained in:
parent
710fa1d820
commit
7d2832e654
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue