summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr4cb.h
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2018-07-21 00:19:17 +0200
committerJ. Bruce Fields <bfields@redhat.com>2018-09-26 02:34:54 +0200
commit9eb190fca8f9056ea4502526dc55fe52318d9afc (patch)
tree89dc134f2c719fab42bab65ce1ab73a0e995b2a3 /fs/nfsd/xdr4cb.h
parentLinux 4.19-rc5 (diff)
downloadlinux-9eb190fca8f9056ea4502526dc55fe52318d9afc.tar.xz
linux-9eb190fca8f9056ea4502526dc55fe52318d9afc.zip
NFSD CB_OFFLOAD xdr
Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4cb.h')
-rw-r--r--fs/nfsd/xdr4cb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4cb.h b/fs/nfsd/xdr4cb.h
index 517239af0302..547cf07cf4e0 100644
--- a/fs/nfsd/xdr4cb.h
+++ b/fs/nfsd/xdr4cb.h
@@ -38,3 +38,13 @@
#define NFS4_dec_cb_notify_lock_sz (cb_compound_dec_hdr_sz + \
cb_sequence_dec_sz + \
op_dec_sz)
+#define enc_cb_offload_info_sz (1 + 1 + 2 + 1 + \
+ XDR_QUADLEN(NFS4_VERIFIER_SIZE))
+#define NFS4_enc_cb_offload_sz (cb_compound_enc_hdr_sz + \
+ cb_sequence_enc_sz + \
+ enc_nfs4_fh_sz + \
+ enc_stateid_sz + \
+ enc_cb_offload_info_sz)
+#define NFS4_dec_cb_offload_sz (cb_compound_dec_hdr_sz + \
+ cb_sequence_dec_sz + \
+ op_dec_sz)