diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-15 02:55:01 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-15 02:55:01 +0100 |
commit | 95a13f7b33be87d85d8e6652126a3f4d64d164db (patch) | |
tree | f21f2f0655e2205029a9edb16d7dca4b8d4e033a | |
parent | NFSv4: Rate limit the state manager for lock reclaim warning messages (diff) | |
download | linux-95a13f7b33be87d85d8e6652126a3f4d64d164db.tar.xz linux-95a13f7b33be87d85d8e6652126a3f4d64d164db.zip |
NFS: Fix a compile error when !defined NFS_DEBUG
We should use the 'ifdebug' wrapper rather than trying to inline
tests of nfs_debug, so that the code compiles correctly when we
don't define NFS_DEBUG.
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index f7e064d997f6..c74fdb114b48 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -3440,7 +3440,7 @@ static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path) status = decode_opaque_inline(xdr, &component->len, &component->data); if (unlikely(status != 0)) goto out_eio; - if (unlikely(nfs_debug & NFSDBG_XDR)) + ifdebug (XDR) pr_cont("%s%.*s ", (path->ncomponents != n ? "/ " : ""), component->len, component->data); |