aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-12-15 15:21:52 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-12-15 15:21:52 -0500
commit8e63b6a8adabb0551124c3b78f7f5f36912c3728 (patch)
tree47043a752823e4aba91f906f95d3c5006f759202 /fs/nfs/nfs4session.c
parente8794440849d1d15fa11251ef1622e6160614874 (diff)
NFSv4.1: Move the RPC timestamp out of the slot.
Shave a few bytes off the slot table size by moving the RPC timestamp into the sequence results. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4session.c')
-rw-r--r--fs/nfs/nfs4session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4session.c b/fs/nfs/nfs4session.c
index 1e6c87c443a7..0e1cc1f4e51a 100644
--- a/fs/nfs/nfs4session.c
+++ b/fs/nfs/nfs4session.c
@@ -143,7 +143,6 @@ struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl)
143 if (slotid > tbl->highest_used_slotid || 143 if (slotid > tbl->highest_used_slotid ||
144 tbl->highest_used_slotid == NFS4_NO_SLOT) 144 tbl->highest_used_slotid == NFS4_NO_SLOT)
145 tbl->highest_used_slotid = slotid; 145 tbl->highest_used_slotid = slotid;
146 ret->renewal_time = jiffies;
147 ret->generation = tbl->generation; 146 ret->generation = tbl->generation;
148 147
149out: 148out:
@@ -228,9 +227,9 @@ static bool nfs41_assign_slot(struct rpc_task *task, void *pslot)
228 227
229 if (nfs4_session_draining(tbl->session) && !args->sa_privileged) 228 if (nfs4_session_draining(tbl->session) && !args->sa_privileged)
230 return false; 229 return false;
231 slot->renewal_time = jiffies;
232 slot->generation = tbl->generation; 230 slot->generation = tbl->generation;
233 args->sa_slot = slot; 231 args->sa_slot = slot;
232 res->sr_timestamp = jiffies;
234 res->sr_slot = slot; 233 res->sr_slot = slot;
235 res->sr_status_flags = 0; 234 res->sr_status_flags = 0;
236 res->sr_status = 1; 235 res->sr_status = 1;