diff options
author | Benny Halevy <bhalevy@panasas.com> | 2008-08-12 20:42:51 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-09-29 17:56:57 -0400 |
commit | 8e40741494bd08a15af17b8cfd26a1f7ad1f5081 (patch) | |
tree | 38abbdb115ed4fa868c13fce32f374f7a499f7a3 /fs/nfsd/nfs4callback.c | |
parent | bfcd17a6c5529bc37234cfa720a047cf9397bcfc (diff) | |
download | kernel_samsung_smdk4412-8e40741494bd08a15af17b8cfd26a1f7ad1f5081.zip kernel_samsung_smdk4412-8e40741494bd08a15af17b8cfd26a1f7ad1f5081.tar.gz kernel_samsung_smdk4412-8e40741494bd08a15af17b8cfd26a1f7ad1f5081.tar.bz2 |
nfsd: properly xdr-encode stateid4.seqid as uint32_t for cb_recall
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 702fa57..ab13e02 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -225,7 +225,8 @@ encode_cb_recall(struct xdr_stream *xdr, struct nfs4_cb_recall *cb_rec) RESERVE_SPACE(12+sizeof(cb_rec->cbr_stateid) + len); WRITE32(OP_CB_RECALL); - WRITEMEM(&cb_rec->cbr_stateid, sizeof(stateid_t)); + WRITE32(cb_rec->cbr_stateid.si_generation); + WRITEMEM(&cb_rec->cbr_stateid.si_opaque, sizeof(stateid_opaque_t)); WRITE32(cb_rec->cbr_trunc); WRITE32(len); WRITEMEM(cb_rec->cbr_fhval, len); |