summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-16 18:45:06 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-26 23:49:51 +0100
commitdf2fabffbace8988f3265585ec793ff9deccdea7 (patch)
tree42aa051469cfd040504597235e462f2077b1ed0e /fs/nfs/nfs4xdr.c
parentNFSv4.1: Shrink struct nfs4_sequence_res by moving the session pointer (diff)
downloadlinux-df2fabffbace8988f3265585ec793ff9deccdea7.tar.xz
linux-df2fabffbace8988f3265585ec793ff9deccdea7.zip
NFSv4.1: Label each entry in the session slot tables with its slot number
Instead of doing slot table pointer gymnastics every time we want to know which slot we're using. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 4126f054610a..50bac7066160 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -5547,7 +5547,7 @@ static int decode_sequence(struct xdr_stream *xdr,
}
/* slot id */
dummy = be32_to_cpup(p++);
- if (dummy != res->sr_slot - session->fc_slot_table.slots) {
+ if (dummy != res->sr_slot->slot_nr) {
dprintk("%s Invalid slot id\n", __func__);
goto out_err;
}