diff options
author | David Howells <dhowells@redhat.com> | 2018-10-20 00:57:57 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-24 00:41:07 +0100 |
commit | f51375cd9e1ad75e9e38186aa0d3749ade7d52a5 (patch) | |
tree | be53b880c26a3895507712447741327de49e6ed9 /fs/afs/internal.h | |
parent | 4ac15ea53622272c01954461b4814892b7481b40 (diff) | |
download | linux-f51375cd9e1ad75e9e38186aa0d3749ade7d52a5.tar.gz linux-f51375cd9e1ad75e9e38186aa0d3749ade7d52a5.tar.bz2 linux-f51375cd9e1ad75e9e38186aa0d3749ade7d52a5.zip |
afs: Add a couple of tracepoints to log I/O errors
Add a couple of tracepoints to log the production of I/O errors within the AFS
filesystem.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r-- | fs/afs/internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index 7e264cb9b4f7..28d08aac515d 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -1257,6 +1257,17 @@ static inline void afs_check_for_remote_deletion(struct afs_fs_cursor *fc, } } +static inline int afs_io_error(struct afs_call *call, enum afs_io_error where) +{ + trace_afs_io_error(call->debug_id, -EIO, where); + return -EIO; +} + +static inline int afs_bad(struct afs_vnode *vnode, enum afs_file_error where) +{ + trace_afs_file_error(vnode, -EIO, where); + return -EIO; +} /*****************************************************************************/ /* |