lockd: eliminate LOCKD_DEBUG
authorJeff Layton <jlayton@primarydata.com>
Mon, 17 Nov 2014 21:58:03 +0000 (16:58 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 24 Nov 2014 22:24:08 +0000 (17:24 -0500)
LOCKD_DEBUG is always the same value as CONFIG_SUNRPC_DEBUG, so we can
just use it instead.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/lockd/svclock.c
include/linux/lockd/debug.h

index 13db95f54176ec0864732177392889c389df2b57..56598742dde473a8c97a35fb6a91826918776839 100644 (file)
@@ -53,7 +53,7 @@ static const struct rpc_call_ops nlmsvc_grant_ops;
 static LIST_HEAD(nlm_blocked);
 static DEFINE_SPINLOCK(nlm_blocked_lock);
 
-#ifdef LOCKD_DEBUG
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
 static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie)
 {
        /*
index 257d3779f2abbc032396aab5727f95fe488df425..0ca8109934e43d3ee5ede75daf7b9b4d1831e5e0 100644 (file)
  * Enable lockd debugging.
  * Requires RPC_DEBUG.
  */
-#ifdef RPC_DEBUG
-# define LOCKD_DEBUG           1
-#endif
-
 #undef ifdebug
-#if defined(RPC_DEBUG) && defined(LOCKD_DEBUG)
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
 # define ifdebug(flag)         if (unlikely(nlm_debug & NLMDBG_##flag))
 #else
 # define ifdebug(flag)         if (0)
This page took 0.02767 seconds and 5 git commands to generate.