NFSv4.1: Remove the state manager code to resize the slot table
[firefly-linux-kernel-4.4.55.git] / fs / nfs / nfs4proc.c
index fc65300172e1a40a154e6f8fcf9fcab90ce73cf6..0642e28704deaa14ae1fe2766ea14fdb9606bdf1 100644 (file)
@@ -5830,23 +5830,6 @@ out:
        return ret;
 }
 
-int nfs4_resize_slot_table(struct nfs4_slot_table *tbl,
-                u32 max_reqs, u32 ivalue)
-{
-       int ret;
-
-       if (max_reqs > NFS4_MAX_SLOT_TABLE)
-               max_reqs = NFS4_MAX_SLOT_TABLE;
-       ret = nfs4_grow_slot_table(tbl, max_reqs, ivalue);
-       if (ret)
-               return ret;
-       spin_lock(&tbl->slot_tbl_lock);
-       nfs4_shrink_slot_table(tbl, max_reqs);
-       tbl->max_slotid = max_reqs - 1;
-       spin_unlock(&tbl->slot_tbl_lock);
-       return 0;
-}
-
 /* Destroy the slot table */
 static void nfs4_destroy_slot_tables(struct nfs4_session *session)
 {