PCI: tegra: Add debugfs support
[firefly-linux-kernel-4.4.55.git] / fs / nfsd / xdr4.h
index 15ca47797a82bd98c1f411e0b0febef19ad1efbd..18cbb6d9c8a9e151ffe7b38893dd727fe2b4e41c 100644 (file)
@@ -58,7 +58,7 @@ struct nfsd4_compound_state {
        /* For sessions DRC */
        struct nfsd4_session    *session;
        struct nfsd4_slot       *slot;
-       __be32                  *datap;
+       int                     data_offset;
        size_t                  iovlen;
        u32                     minorversion;
        __be32                  status;
@@ -287,9 +287,8 @@ struct nfsd4_readdir {
        struct svc_fh * rd_fhp;             /* response */
 
        struct readdir_cd       common;
-       __be32 *                buffer;
-       int                     buflen;
-       __be32 *                offset;
+       struct xdr_stream       *xdr;
+       int                     cookie_offset;
 };
 
 struct nfsd4_release_lockowner {
@@ -536,6 +535,7 @@ static inline bool nfsd4_last_compound_op(struct svc_rqst *rqstp)
        return argp->opcnt == resp->opcnt;
 }
 
+int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op);
 void warn_on_nonidempotent_op(struct nfsd4_op *op);
 
 #define NFS4_SVC_XDRSIZE               sizeof(struct nfsd4_compoundargs)
@@ -563,7 +563,7 @@ int nfs4svc_encode_compoundres(struct svc_rqst *, __be32 *,
                struct nfsd4_compoundres *);
 __be32 nfsd4_check_resp_size(struct nfsd4_compoundres *, u32);
 void nfsd4_encode_operation(struct nfsd4_compoundres *, struct nfsd4_op *);
-void nfsd4_encode_replay(struct nfsd4_compoundres *resp, struct nfsd4_op *op);
+void nfsd4_encode_replay(struct xdr_stream *xdr, struct nfsd4_op *op);
 __be32 nfsd4_encode_fattr_to_buf(__be32 **p, int words,
                struct svc_fh *fhp, struct svc_export *exp,
                struct dentry *dentry,