diff options
author | Benny Halevy <bhalevy@panasas.com> | 2007-07-17 07:04:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:07 -0400 |
commit | 0ac68d17996eb421dde51452b89d5545ba07c6fe (patch) | |
tree | 444ac8b89189e6b3e543df82c04b4d570c3133f6 | |
parent | f7fede4b27bfc6c987d6da8e40384b1b098830bb (diff) |
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: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/nfsd/nfs4callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 5443c52b57aa..31d6633c7fe4 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -75,7 +75,7 @@ enum nfs_cb_opnum4 { | |||
75 | #define op_enc_sz 1 | 75 | #define op_enc_sz 1 |
76 | #define op_dec_sz 2 | 76 | #define op_dec_sz 2 |
77 | #define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2)) | 77 | #define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2)) |
78 | #define enc_stateid_sz 16 | 78 | #define enc_stateid_sz (NFS4_STATEID_SIZE >> 2) |
79 | #define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \ | 79 | #define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \ |
80 | 1 + enc_stateid_sz + \ | 80 | 1 + enc_stateid_sz + \ |
81 | enc_nfs4_fh_sz) | 81 | enc_nfs4_fh_sz) |