diff options
author | Trond Myklebust <trondmy@gmail.com> | 2020-01-14 18:00:22 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-02-06 17:22:55 +0100 |
commit | c19285596de699e4602f9c89785e6b8c29422286 (patch) | |
tree | 70e86e5b648cb91caa387bac836125485098d8b5 /fs/nfsd | |
parent | nfsd: Fix a perf warning (diff) | |
download | linux-c19285596de699e4602f9c89785e6b8c29422286.tar.xz linux-c19285596de699e4602f9c89785e6b8c29422286.zip |
nfsd: Define the file access mode enum for tracing
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/trace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h index b073bdc2e6e8..17ecef404e5b 100644 --- a/fs/nfsd/trace.h +++ b/fs/nfsd/trace.h @@ -166,6 +166,12 @@ DEFINE_STATEID_EVENT(layout_recall_done); DEFINE_STATEID_EVENT(layout_recall_fail); DEFINE_STATEID_EVENT(layout_recall_release); +TRACE_DEFINE_ENUM(NFSD_FILE_HASHED); +TRACE_DEFINE_ENUM(NFSD_FILE_PENDING); +TRACE_DEFINE_ENUM(NFSD_FILE_BREAK_READ); +TRACE_DEFINE_ENUM(NFSD_FILE_BREAK_WRITE); +TRACE_DEFINE_ENUM(NFSD_FILE_REFERENCED); + #define show_nf_flags(val) \ __print_flags(val, "|", \ { 1 << NFSD_FILE_HASHED, "HASHED" }, \ |