Skip to content

Commit

Permalink
NFS: trace: show TIMEDOUT instead of 0x6e
Browse files Browse the repository at this point in the history
__nfs_revalidate_inode may return ETIMEDOUT.

print symbol of ETIMEDOUT in nfs trace:

before:
cat-5191 [005] 119.331127: nfs_revalidate_inode_exit: error=-110 (0x6e)

after:
cat-1738 [004] 44.365509: nfs_revalidate_inode_exit: error=-110 (TIMEDOUT)

Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
  • Loading branch information
Chen Hanxiao authored and Chuck Lever committed Sep 1, 2024
1 parent 4b84551 commit cef4823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/trace/misc/nfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ TRACE_DEFINE_ENUM(NFSERR_JUKEBOX);
{ NFSERR_IO, "IO" }, \
{ NFSERR_NXIO, "NXIO" }, \
{ ECHILD, "CHILD" }, \
{ ETIMEDOUT, "TIMEDOUT" }, \
{ NFSERR_EAGAIN, "AGAIN" }, \
{ NFSERR_ACCES, "ACCES" }, \
{ NFSERR_EXIST, "EXIST" }, \
Expand Down

0 comments on commit cef4823

Please sign in to comment.