summaryrefslogtreecommitdiffstats
path: root/sys/coda/coda_vnops.c
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-20 14:49:12 +0000
committereivind <eivind@FreeBSD.org>1999-01-20 14:49:12 +0000
commit836035a4edf2d12174893117e0db29e309203a8b (patch)
treeb49b8271eedf41e5c0a341956ab5c43489f98b71 /sys/coda/coda_vnops.c
parentaf1ac09a53e9b9f7d330522b7109c3ae65dbba61 (diff)
downloadFreeBSD-src-836035a4edf2d12174893117e0db29e309203a8b.zip
FreeBSD-src-836035a4edf2d12174893117e0db29e309203a8b.tar.gz
Add 'options DEBUG_LOCKS', which stores extra information in struct
lock, and add some macros and function parameters to make sure that the information get to the point where it can be put in the lock structure. While I'm here, add DEBUG_VFS_LOCKS to LINT.
Diffstat (limited to 'sys/coda/coda_vnops.c')
-rw-r--r--sys/coda/coda_vnops.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c
index b401cd3..c0cfa5e 100644
--- a/sys/coda/coda_vnops.c
+++ b/sys/coda/coda_vnops.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/coda/coda_vnops.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: coda_vnops.c,v 1.11 1999/01/05 18:49:51 eivind Exp $
+ * $Id: coda_vnops.c,v 1.12 1999/01/07 16:14:12 bde Exp $
*
*/
@@ -48,6 +48,11 @@
/*
* HISTORY
* $Log: coda_vnops.c,v $
+ * Revision 1.12 1999/01/07 16:14:12 bde
+ * Don't pass unused unused timestamp args to UFS_UPDATE() or waste
+ * time initializing them. This almost finishes centralizing (in-core)
+ * timestamp updates in ufs_itimes().
+ *
* Revision 1.11 1999/01/05 18:49:51 eivind
* Remove the 'waslocked' parameter to vfs_object_create().
*
@@ -2037,7 +2042,12 @@ coda_lock(v)
cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique));
}
+#ifndef DEBUG_LOCKS
return (lockmgr(&cp->c_lock, ap->a_flags, &vp->v_interlock, p));
+#else
+ return (debuglockmgr(&cp->c_lock, ap->a_flags, &vp->v_interlock, p,
+ "coda_lock", vp->filename, vp->line));
+#endif
}
int
OpenPOWER on IntegriCloud