block: strip out locking optimization in put_io_context()
[linux-2.6.git] / include / linux / lockd / debug.h
blob257d3779f2abbc032396aab5727f95fe488df425
1 /*
2 * linux/include/linux/lockd/debug.h
4 * Debugging stuff.
6 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
7 */
9 #ifndef LINUX_LOCKD_DEBUG_H
10 #define LINUX_LOCKD_DEBUG_H
12 #ifdef __KERNEL__
14 #include <linux/sunrpc/debug.h>
17 * Enable lockd debugging.
18 * Requires RPC_DEBUG.
20 #ifdef RPC_DEBUG
21 # define LOCKD_DEBUG 1
22 #endif
24 #undef ifdebug
25 #if defined(RPC_DEBUG) && defined(LOCKD_DEBUG)
26 # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
27 #else
28 # define ifdebug(flag) if (0)
29 #endif
31 #endif /* __KERNEL__ */
34 * Debug flags
36 #define NLMDBG_SVC 0x0001
37 #define NLMDBG_CLIENT 0x0002
38 #define NLMDBG_CLNTLOCK 0x0004
39 #define NLMDBG_SVCLOCK 0x0008
40 #define NLMDBG_MONITOR 0x0010
41 #define NLMDBG_CLNTSUBS 0x0020
42 #define NLMDBG_SVCSUBS 0x0040
43 #define NLMDBG_HOSTCACHE 0x0080
44 #define NLMDBG_XDR 0x0100
45 #define NLMDBG_ALL 0x7fff
47 #endif /* LINUX_LOCKD_DEBUG_H */