summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_vnops.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-02 02:24:57 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-02 02:24:57 +0000
commit108f19d0ced75c574baf04aadc2461544271ab61 (patch)
treec74dd7b672cc03aff7b93052e639c38506a52563 /sys/ntfs/ntfs_vnops.c
parente04bdc4d8438d7c603ab1f98c7150e02c3c7e42c (diff)
Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking. OK mpi@
Diffstat (limited to 'sys/ntfs/ntfs_vnops.c')
-rw-r--r--sys/ntfs/ntfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ntfs/ntfs_vnops.c b/sys/ntfs/ntfs_vnops.c
index 55edd6de2c6..2510c6d1421 100644
--- a/sys/ntfs/ntfs_vnops.c
+++ b/sys/ntfs/ntfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vnops.c,v 1.43 2018/04/28 03:13:05 visa Exp $ */
+/* $OpenBSD: ntfs_vnops.c,v 1.44 2018/05/02 02:24:56 visa Exp $ */
/* $NetBSD: ntfs_vnops.c,v 1.6 2003/04/10 21:57:26 jdolecek Exp $ */
/*
@@ -584,13 +584,13 @@ ntfs_lookup(void *v)
vap->va_a_name->n_pnumber,ap->a_vpp);
ntfs_ntvattrrele(vap);
if (error) {
- if (vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY, p) == 0)
+ if (vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY) == 0)
cnp->cn_flags &= ~PDIRUNLOCK;
return (error);
}
if (lockparent && (cnp->cn_flags & ISLASTCN)) {
- error = vn_lock(dvp, LK_EXCLUSIVE, p);
+ error = vn_lock(dvp, LK_EXCLUSIVE);
if (error) {
vput( *(ap->a_vpp) );
return (error);