aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/fsclient.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-14 15:35:44 +0100
committerDavid Howells <dhowells@redhat.com>2019-05-16 22:23:21 +0100
commit7c712458669f203fb2c59af8aafea4c4767b4bc9 (patch)
treeafea6a2720e7676304b30fd45b124eb14c3993ff /fs/afs/fsclient.c
parentafs: Fix application of status and callback to be under same lock (diff)
downloadlinux-dev-7c712458669f203fb2c59af8aafea4c4767b4bc9.tar.xz
linux-dev-7c712458669f203fb2c59af8aafea4c4767b4bc9.zip
afs: Don't save callback version and type fields
Don't save callback version and type fields as the version is about the format of the callback information and the type is relative to the particular RPC call. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/fsclient.c')
-rw-r--r--fs/afs/fsclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
index 5c1b7a031509..89b684c957b9 100644
--- a/fs/afs/fsclient.c
+++ b/fs/afs/fsclient.c
@@ -148,9 +148,9 @@ static void xdr_decode_AFSCallBack(const __be32 **_bp,
struct afs_callback *cb = &scb->callback;
const __be32 *bp = *_bp;
- cb->version = ntohl(*bp++);
+ bp++; /* version */
cb->expires_at = xdr_decode_expiry(call, ntohl(*bp++));
- cb->type = ntohl(*bp++);
+ bp++; /* type */
scb->have_cb = true;
*_bp = bp;
}