Commit 0ac68d17 authored by Benny Halevy's avatar Benny Halevy Committed by Linus Torvalds

knfsd: nfsd4: fix enc_stateid_sz for nfsd callbacks

enc_stateid_sz should be given in u32 words units, not bytes, so we were
overestimating the buffer space needed here.
Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatar"J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f7fede4b
...@@ -75,7 +75,7 @@ enum nfs_cb_opnum4 { ...@@ -75,7 +75,7 @@ enum nfs_cb_opnum4 {
#define op_enc_sz 1 #define op_enc_sz 1
#define op_dec_sz 2 #define op_dec_sz 2
#define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2)) #define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2))
#define enc_stateid_sz 16 #define enc_stateid_sz (NFS4_STATEID_SIZE >> 2)
#define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \ #define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \
1 + enc_stateid_sz + \ 1 + enc_stateid_sz + \
enc_nfs4_fh_sz) enc_nfs4_fh_sz)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment