diff options
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 8c29950d2fa5..c07a757649dc 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -395,6 +395,20 @@ static inline void nfs_free_fhandle(const struct nfs_fh *fh) | |||
395 | kfree(fh); | 395 | kfree(fh); |
396 | } | 396 | } |
397 | 397 | ||
398 | #ifdef RPC_DEBUG | ||
399 | extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption); | ||
400 | #define nfs_display_fhandle(fh, caption) \ | ||
401 | do { \ | ||
402 | if (unlikely(nfs_debug & NFSDBG_FACILITY)) \ | ||
403 | _nfs_display_fhandle(fh, caption); \ | ||
404 | } while (0) | ||
405 | #else | ||
406 | static inline void nfs_display_fhandle(const struct nfs_fh *fh, | ||
407 | const char *caption) | ||
408 | { | ||
409 | } | ||
410 | #endif | ||
411 | |||
398 | /* | 412 | /* |
399 | * linux/fs/nfs/nfsroot.c | 413 | * linux/fs/nfs/nfsroot.c |
400 | */ | 414 | */ |