diff options
author | Jeff Layton <jlayton@redhat.com> | 2016-09-16 23:28:23 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-09-26 22:20:35 +0300 |
commit | a188620ebd294b18d8da93f4b2a307d484e7bd27 (patch) | |
tree | 9c59983232415a6c55452569422d64402f22d687 /fs/nfsd/xdr4cb.h | |
parent | 1eca45f8a840987d0df355e0176921653e4f7ec2 (diff) | |
download | linux-a188620ebd294b18d8da93f4b2a307d484e7bd27.tar.xz |
nfsd: plumb in a CB_NOTIFY_LOCK operation
Add the encoding/decoding for CB_NOTIFY_LOCK operations.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4cb.h')
-rw-r--r-- | fs/nfsd/xdr4cb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4cb.h b/fs/nfsd/xdr4cb.h index c47f6fdb111a..49b719dfef95 100644 --- a/fs/nfsd/xdr4cb.h +++ b/fs/nfsd/xdr4cb.h @@ -28,3 +28,12 @@ #define NFS4_dec_cb_layout_sz (cb_compound_dec_hdr_sz + \ cb_sequence_dec_sz + \ op_dec_sz) + +#define NFS4_enc_cb_notify_lock_sz (cb_compound_enc_hdr_sz + \ + cb_sequence_enc_sz + \ + 2 + 1 + \ + XDR_QUADLEN(NFS4_OPAQUE_LIMIT) + \ + enc_nfs4_fh_sz) +#define NFS4_dec_cb_notify_lock_sz (cb_compound_dec_hdr_sz + \ + cb_sequence_dec_sz + \ + op_dec_sz) |