#ifndef _LINUX_NFSD_XDR_H
#define _LINUX_NFSD_XDR_H
#include <linux/vfs.h>
#include "vfs.h"
struct nfsd_attrstat {
__be32 status;
struct svc_fh fh;
struct kstat stat;
};
struct readdirres_wrapper {
struct readdirres xdrgen;
struct svc_fh fh;
struct nfsd_readdir_iter iter;
u32 count;
u32 space_left;
unsigned int cookie_offset;
};
static_assert(offsetof(struct readdirres_wrapper, xdrgen) == 0);
bool nfssvc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
bool nfssvc_encode_attrstatres(struct svc_rqst *rqstp, struct xdr_stream *xdr);
void nfssvc_encode_nfscookie(struct xdr_stream *xdr, unsigned int pos,
u32 cookie);
void nfssvc_release_readdirres(struct svc_rqst *rqstp);
void nfssvc_release_attrstat(struct svc_rqst *rqstp);
bool svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp);
bool svcxdr_encode_stat(struct xdr_stream *xdr, __be32 status);
bool svcxdr_encode_fattr(struct svc_rqst *rqstp, struct xdr_stream *xdr,
const struct svc_fh *fhp, const struct kstat *stat);
#endif /* _LINUX_NFSD_XDR_H */