diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-16 12:45:06 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-26 17:49:51 -0500 |
commit | df2fabffbace8988f3265585ec793ff9deccdea7 (patch) | |
tree | 42aa051469cfd040504597235e462f2077b1ed0e /fs/nfs/nfs4xdr.c | |
parent | e3725ec015dfbbeb896295cf2b3a995f28b0630e (diff) |
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.c | 2 |
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, | |||
5547 | } | 5547 | } |
5548 | /* slot id */ | 5548 | /* slot id */ |
5549 | dummy = be32_to_cpup(p++); | 5549 | dummy = be32_to_cpup(p++); |
5550 | if (dummy != res->sr_slot - session->fc_slot_table.slots) { | 5550 | if (dummy != res->sr_slot->slot_nr) { |
5551 | dprintk("%s Invalid slot id\n", __func__); | 5551 | dprintk("%s Invalid slot id\n", __func__); |
5552 | goto out_err; | 5552 | goto out_err; |
5553 | } | 5553 | } |