sit: fix a double free on error path
[linux/fpc-iii.git] / fs / nfsd / xdr4cb.h
blob49b719dfef95a95cef4937d1d9ca5e7c6bc49078
1 #define NFS4_MAXTAGLEN 20
3 #define NFS4_enc_cb_null_sz 0
4 #define NFS4_dec_cb_null_sz 0
5 #define cb_compound_enc_hdr_sz 4
6 #define cb_compound_dec_hdr_sz (3 + (NFS4_MAXTAGLEN >> 2))
7 #define sessionid_sz (NFS4_MAX_SESSIONID_LEN >> 2)
8 #define cb_sequence_enc_sz (sessionid_sz + 4 + \
9 1 /* no referring calls list yet */)
10 #define cb_sequence_dec_sz (op_dec_sz + sessionid_sz + 4)
12 #define op_enc_sz 1
13 #define op_dec_sz 2
14 #define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2))
15 #define enc_stateid_sz (NFS4_STATEID_SIZE >> 2)
16 #define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \
17 cb_sequence_enc_sz + \
18 1 + enc_stateid_sz + \
19 enc_nfs4_fh_sz)
21 #define NFS4_dec_cb_recall_sz (cb_compound_dec_hdr_sz + \
22 cb_sequence_dec_sz + \
23 op_dec_sz)
24 #define NFS4_enc_cb_layout_sz (cb_compound_enc_hdr_sz + \
25 cb_sequence_enc_sz + \
26 1 + 3 + \
27 enc_nfs4_fh_sz + 4)
28 #define NFS4_dec_cb_layout_sz (cb_compound_dec_hdr_sz + \
29 cb_sequence_dec_sz + \
30 op_dec_sz)
32 #define NFS4_enc_cb_notify_lock_sz (cb_compound_enc_hdr_sz + \
33 cb_sequence_enc_sz + \
34 2 + 1 + \
35 XDR_QUADLEN(NFS4_OPAQUE_LIMIT) + \
36 enc_nfs4_fh_sz)
37 #define NFS4_dec_cb_notify_lock_sz (cb_compound_dec_hdr_sz + \
38 cb_sequence_dec_sz + \
39 op_dec_sz)