aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-04-01 09:22:05 -0400
committerBenny Halevy <bhalevy@panasas.com>2009-06-17 13:46:30 -0400
commit5f7dbd5c752d88310d8fe1feedefd5c6496eff48 (patch)
tree870e270d87cf112494500b655f08980539ffa291 /fs/nfs/write.c
parentf3752975caa716709c5ea0b0820b86111d921df4 (diff)
nfs41: set up seq_res.sr_slotid
Initialize nfs4_sequence_res sr_slotid to NFS4_MAX_SLOT_TABLE. [was nfs41: sequence res use slotid] Signed-off-by: Andy Adamson <andros@netapp.com> [pulled definition of struct nfs4_sequence_res.sr_slotid to here] Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index e560a78995a3..035e6fb9f57e 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -52,6 +52,7 @@ struct nfs_write_data *nfs_commitdata_alloc(void)
52 if (p) { 52 if (p) {
53 memset(p, 0, sizeof(*p)); 53 memset(p, 0, sizeof(*p));
54 INIT_LIST_HEAD(&p->pages); 54 INIT_LIST_HEAD(&p->pages);
55 p->res.seq_res.sr_slotid = NFS4_MAX_SLOT_TABLE;
55 } 56 }
56 return p; 57 return p;
57} 58}
@@ -71,6 +72,7 @@ struct nfs_write_data *nfs_writedata_alloc(unsigned int pagecount)
71 memset(p, 0, sizeof(*p)); 72 memset(p, 0, sizeof(*p));
72 INIT_LIST_HEAD(&p->pages); 73 INIT_LIST_HEAD(&p->pages);
73 p->npages = pagecount; 74 p->npages = pagecount;
75 p->res.seq_res.sr_slotid = NFS4_MAX_SLOT_TABLE;
74 if (pagecount <= ARRAY_SIZE(p->page_array)) 76 if (pagecount <= ARRAY_SIZE(p->page_array))
75 p->pagevec = p->page_array; 77 p->pagevec = p->page_array;
76 else { 78 else {