diff options
author | David Howells <dhowells@redhat.com> | 2018-10-19 19:57:56 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-23 19:41:07 -0400 |
commit | 160cb9574b550426122422444b8f19d614505f81 (patch) | |
tree | f2ab7787510db7d4d426e9ec3fcdfea07fa81522 /fs/afs/inode.c | |
parent | 9ea9ce0427aab02a2fd88fc608267cf6952119f1 (diff) |
afs: Better tracing of protocol errors
Include the site of detection of AFS protocol errors in trace lines to
better be able to determine what went wrong.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/inode.c')
-rw-r--r-- | fs/afs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 479b7fdda124..ab4e7a15c205 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c | |||
@@ -82,7 +82,7 @@ static int afs_inode_init_from_status(struct afs_vnode *vnode, struct key *key) | |||
82 | default: | 82 | default: |
83 | printk("kAFS: AFS vnode with undefined type\n"); | 83 | printk("kAFS: AFS vnode with undefined type\n"); |
84 | read_sequnlock_excl(&vnode->cb_lock); | 84 | read_sequnlock_excl(&vnode->cb_lock); |
85 | return afs_protocol_error(NULL, -EBADMSG); | 85 | return afs_protocol_error(NULL, -EBADMSG, afs_eproto_file_type); |
86 | } | 86 | } |
87 | 87 | ||
88 | inode->i_blocks = 0; | 88 | inode->i_blocks = 0; |