mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
e3725ec015
commit
df2fabffba
3 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue