NFS: Move NFS protocol display macros to global header
authorChuck Lever <chuck.lever@oracle.com>
Fri, 22 Oct 2021 20:17:03 +0000 (16:17 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 2 Nov 2021 16:31:23 +0000 (12:31 -0400)
commit8791545eda52e8f3bc48e3cd902e38bf4ba4c9de
treee8c8ff510717ca66627fc635443361ac2ef181d2
parent9d2d48bbbdabf7b2f029369c4f926d133c1d47ad
NFS: Move NFS protocol display macros to global header

Refactor: surface useful show_ macros so they can be shared between
the client and server trace code.

Additional clean up:
- Housekeeping: ensure the correct #include files are pulled in
  and add proper TRACE_DEFINE_ENUM where they are missing
- Use a consistent naming scheme for the helpers
- Store values to be displayed symbolically as unsigned long, as
  that is the type that the __print_yada() functions take

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4trace.h
fs/nfs/nfstrace.h
fs/nfs/pnfs.h
fs/nfsd/trace.h
include/linux/nfs4.h
include/trace/events/nfs.h [new file with mode: 0644]