diff options
Diffstat (limited to 'sys/fs/hpfs/hpfs_subr.c')
-rw-r--r-- | sys/fs/hpfs/hpfs_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/hpfs/hpfs_subr.c b/sys/fs/hpfs/hpfs_subr.c index 5fa32a5..b45ebbd 100644 --- a/sys/fs/hpfs/hpfs_subr.c +++ b/sys/fs/hpfs/hpfs_subr.c @@ -536,7 +536,8 @@ hpfs_validateparent ( if (hp->h_no == hp->h_fn.fn_parent) { dhp = hp; } else { - error = VFS_VGET(hpmp->hpm_mp, hp->h_fn.fn_parent, &dvp); + error = VFS_VGET(hpmp->hpm_mp, hp->h_fn.fn_parent, + LK_EXCLUSIVE, &dvp); if (error) return (error); dhp = VTOHP(dvp); @@ -689,7 +690,7 @@ hpfs_updateparent ( dhp = hp; } else { error = VFS_VGET(hp->h_hpmp->hpm_mp, hp->h_fn.fn_parent, - &dvp); + LK_EXCLUSIVE, &dvp); if (error) return (error); dhp = VTOHP(dvp); |