summaryrefslogtreecommitdiffstats
path: root/fs/afs/rxrpc.c
diff options
context:
space:
mode:
authorDavid Howells2018-04-06 15:17:25 +0200
committerDavid Howells2018-04-09 22:54:48 +0200
commit5f702c8e124f967146a735a19f0b00a2469487d1 (patch)
tree16f1818dcb8412656be694a3071b7f31e4ee9094 /fs/afs/rxrpc.c
parentafs: Locally edit directory data for mkdir/create/unlink/... (diff)
downloadkernel-qcow2-linux-5f702c8e124f967146a735a19f0b00a2469487d1.tar.gz
kernel-qcow2-linux-5f702c8e124f967146a735a19f0b00a2469487d1.tar.xz
kernel-qcow2-linux-5f702c8e124f967146a735a19f0b00a2469487d1.zip
afs: Trace protocol errors
Trace protocol errors detected in afs. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/rxrpc.c')
-rw-r--r--fs/afs/rxrpc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c
index f7ae54b6a393..5c6263972ec9 100644
--- a/fs/afs/rxrpc.c
+++ b/fs/afs/rxrpc.c
@@ -926,3 +926,12 @@ int afs_extract_data(struct afs_call *call, void *buf, size_t count,
afs_set_call_complete(call, ret, remote_abort);
return ret;
}
+
+/*
+ * Log protocol error production.
+ */
+noinline int afs_protocol_error(struct afs_call *call, int error)
+{
+ trace_afs_protocol_error(call, error, __builtin_return_address(0));
+ return error;
+}