summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-25 10:51:55 +0000
committerjeff <jeff@FreeBSD.org>2005-03-25 10:51:55 +0000
commit430e7e9a03fc5b01e174a6969735735a8513281b (patch)
treec86618d4950aed75d04da592177d32862b4bf674 /sys
parent87c37fafc742ac8e20f4c46d206f72ced087538c (diff)
downloadFreeBSD-src-430e7e9a03fc5b01e174a6969735735a8513281b.zip
FreeBSD-src-430e7e9a03fc5b01e174a6969735735a8513281b.tar.gz
- Pass LK_EXCLUSIVE as the lock type to vget in vfs_hash_insert().
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/msdosfs/msdosfs_denode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c
index 7c58245..fcb2686 100644
--- a/sys/fs/msdosfs/msdosfs_denode.c
+++ b/sys/fs/msdosfs/msdosfs_denode.c
@@ -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);
OpenPOWER on IntegriCloud