Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ntfs ntfs_lookup(): use cnp->cn_proc as the third parame...



details:   https://anonhg.NetBSD.org/src/rev/5171ec712450
branches:  trunk
changeset: 477640:5171ec712450
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Oct 25 21:18:37 1999 +0000

description:
ntfs_lookup(): use cnp->cn_proc as the third parameter to VN_LOCK(), so that
        the code will DTRT on FreeBSD

diffstat:

 sys/ntfs/ntfs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 24ffd8f93c99 -r 5171ec712450 sys/ntfs/ntfs_vnops.c
--- a/sys/ntfs/ntfs_vnops.c     Mon Oct 25 21:17:21 1999 +0000
+++ b/sys/ntfs/ntfs_vnops.c     Mon Oct 25 21:18:37 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_vnops.c,v 1.20 1999/10/25 19:08:26 jdolecek Exp $ */
+/*     $NetBSD: ntfs_vnops.c,v 1.21 1999/10/25 21:18:37 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -797,13 +797,13 @@
                                 vap->va_a_name->n_pnumber,ap->a_vpp); 
                ntfs_ntvattrrele(vap);
                if (error) {
-                       if (VN_LOCK(dvp, LK_EXCLUSIVE | LK_RETRY, curproc) == 0)
+                       if (VN_LOCK(dvp,LK_EXCLUSIVE|LK_RETRY,cnp->cn_proc)==0)
                                cnp->cn_flags &= ~PDIRUNLOCK;
                        return(error);
                }
 
                if (lockparent && (cnp->cn_flags & ISLASTCN)) {
-                       error = VN_LOCK(dvp, LK_EXCLUSIVE | LK_RETRY, curproc);
+                       error = VN_LOCK(dvp,LK_EXCLUSIVE|LK_RETRY,cnp->cn_proc);
                        if (error) {
                                vput( *(ap->a_vpp) );
                                return (error);



Home | Main Index | Thread Index | Old Index