nfs: Use proper enum definitions for nfs_show_stable
authorChuck Lever <chuck.lever@oracle.com>
Thu, 18 Jan 2018 19:55:01 +0000 (14:55 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 18 Jan 2018 20:01:22 +0000 (15:01 -0500)
commit06e1902456f3d0e45c3e64b75124339d67c83e5b
treea20c7df4af2f0459b17031d5071c0de825c07abc
parent7ff4cff637aa0bd2abbd81f53b2a6206c50afd95
nfs: Use proper enum definitions for nfs_show_stable

Commit 8224b2734ab1 ("NFS: Add static NFS I/O tracepoints") had a
hack to work around some odd behavior observed with
__print_symbolic. I couldn't ever get it to display NFS_FILE_SYNC
when using TRACE_DEFINE_ENUM macros to set up the enum values.

I tracked down the actual bug that forced me to add the workaround.
That issue will be addressed soon, so replace the hack with a proper
implementation.

Fixes: 8224b2734ab1 ("NFS: Add static NFS I/O tracepoints")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfstrace.h