diff options
author | jeff <jeff@FreeBSD.org> | 2005-03-25 10:51:55 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-03-25 10:51:55 +0000 |
commit | 430e7e9a03fc5b01e174a6969735735a8513281b (patch) | |
tree | c86618d4950aed75d04da592177d32862b4bf674 /sys | |
parent | 87c37fafc742ac8e20f4c46d206f72ced087538c (diff) | |
download | FreeBSD-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.c | 3 |
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); |