diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-03-16 11:19:54 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-03-16 11:19:54 +0000 |
| commit | bf6ac110e048229e14a23ff1056c7ff8b4bec2d1 (patch) | |
| tree | 553c850e9df37d80c4dc6535d1897b6c021253a8 | |
| parent | 42de97a50adceeeed09e8e804adb09e9b61ebc0b (diff) | |
Notes
| -rw-r--r-- | sys/fs/udf/udf_vnops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c index 6582f927b865..d48e36d202bb 100644 --- a/sys/fs/udf/udf_vnops.c +++ b/sys/fs/udf/udf_vnops.c @@ -127,10 +127,10 @@ udf_hashins(struct udf_node *node) udfmp = node->udfmp; + vn_lock(node->i_vnode, LK_EXCLUSIVE | LK_RETRY, curthread); mtx_lock(&udfmp->hash_mtx); TAILQ_INSERT_TAIL(&udfmp->udf_tqh, node, tq); mtx_unlock(&udfmp->hash_mtx); - vn_lock(node->i_vnode, LK_EXCLUSIVE | LK_RETRY, curthread); return (0); } @@ -161,7 +161,6 @@ udf_allocv(struct mount *mp, struct vnode **vpp, struct thread *td) return (error); } - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); *vpp = vp; return (0); } |
