summaryrefslogtreecommitdiffstats
path: root/sys/sys/file.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-01-13 12:01:29 +0000
committeralfred <alfred@FreeBSD.org>2002-01-13 12:01:29 +0000
commit2344f261e7662c2f3f31fa8a99b424aa4e498a63 (patch)
tree2d9c066fd143b82bd6d60d9115184f5fabb17f61 /sys/sys/file.h
parent844237b3960bfbf49070d6371a84f67f9e3366f6 (diff)
downloadFreeBSD-src-2344f261e7662c2f3f31fa8a99b424aa4e498a63.zip
FreeBSD-src-2344f261e7662c2f3f31fa8a99b424aa4e498a63.tar.gz
Remove file locking debug cruft.
Diffstat (limited to 'sys/sys/file.h')
-rw-r--r--sys/sys/file.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h
index 575b608..a97482d 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -131,22 +131,8 @@ int fdrop __P((struct file *fp, struct thread *td));
int fdrop_locked __P((struct file *fp, struct thread *td));
/* Lock a file. */
-/*#define FILE_LOCK_DEBUG*/
-#ifdef FILE_LOCK_DEBUG
-#define FILE_LOCK(f) \
- do { \
- printf("FLCK: %p %s %d\n", &(f)->f_mtx, __FILE__, __LINE__); \
- mtx_lock(&(f)->f_mtx); \
- } while (0)
-#define FILE_UNLOCK(f) \
- do { \
- printf("FREL: %p %s %d\n", &(f)->f_mtx, __FILE__, __LINE__); \
- mtx_unlock(&(f)->f_mtx); \
- } while (0)
-#else
#define FILE_LOCK(f) mtx_lock(&(f)->f_mtx)
#define FILE_UNLOCK(f) mtx_unlock(&(f)->f_mtx)
-#endif
#define FILE_LOCKED(f) mtx_owned(&(f)->f_mtx)
#define FILE_LOCK_ASSERT(f, type) mtx_assert(&(f)->f_mtx, (type))
OpenPOWER on IntegriCloud