From: Trond Myklebust Date: Mon, 29 Oct 2012 20:48:40 +0000 (-0400) Subject: NFSv4: Initialise the NFSv4.1 slot table highest_used_slotid correctly X-Git-Tag: MMI-PSA29.97-13-9~15596^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9b1ef5f06d65a01952169b67d474f7f0dcb0206;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git NFSv4: Initialise the NFSv4.1 slot table highest_used_slotid correctly Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8cfbac1a8d5e..091baab3eccf 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5677,7 +5677,7 @@ static void nfs4_add_and_init_slots(struct nfs4_slot_table *tbl, tbl->slots = new; tbl->max_slots = max_slots; } - tbl->highest_used_slotid = -1; /* no slot is currently used */ + tbl->highest_used_slotid = NFS4_NO_SLOT; for (i = 0; i < tbl->max_slots; i++) tbl->slots[i].seq_nr = ivalue; spin_unlock(&tbl->slot_tbl_lock);