]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b77782261fef43d344b964c64527ff18e8a6e44
treea20c7df4af2f0459b17031d5071c0de825c07abc
parentf5f0cba737c00979dfa4ac018b2a44c01c6ad9d1
nfs: Use proper enum definitions for nfs_show_stable

Commit f1ececa97b34 ("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: f1ececa97b34 ("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