diff --git a/sys/fs/nfs/nfs.h b/sys/fs/nfs/nfs.h index 87f5716ed5bd..0e0a46c4ea4e 100644 --- a/sys/fs/nfs/nfs.h +++ b/sys/fs/nfs/nfs.h @@ -638,10 +638,10 @@ struct nfsgss_mechlist { * This structure is used by the server for describing each request. */ struct nfsrv_descript { - mbuf_t nd_mrep; /* Request mbuf list */ - mbuf_t nd_md; /* Current dissect mbuf */ - mbuf_t nd_mreq; /* Reply mbuf list */ - mbuf_t nd_mb; /* Current build mbuf */ + struct mbuf *nd_mrep; /* Request mbuf list */ + struct mbuf *nd_md; /* Current dissect mbuf */ + struct mbuf *nd_mreq; /* Reply mbuf list */ + struct mbuf *nd_mb; /* Current build mbuf */ NFSSOCKADDR_T nd_nam; /* and socket addr */ NFSSOCKADDR_T nd_nam2; /* return socket addr */ caddr_t nd_dpos; /* Current dissect pos */ diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c index 9a357e1f0917..f9941aab3416 100644 --- a/sys/fs/nfs/nfs_commonsubs.c +++ b/sys/fs/nfs/nfs_commonsubs.c @@ -611,7 +611,7 @@ nfsm_mbufuio(struct nfsrv_descript *nd, struct uio *uiop, int siz) { char *mbufcp, *uiocp; int xfer, left, len; - mbuf_t mp; + struct mbuf *mp; long uiosiz, rem; int error = 0; @@ -694,7 +694,7 @@ nfsm_mbufuio(struct nfsrv_descript *nd, struct uio *uiop, int siz) APPLESTATIC void * nfsm_dissct(struct nfsrv_descript *nd, int siz, int how) { - mbuf_t mp2; + struct mbuf *mp2; int siz2, xfer; caddr_t p; int left; @@ -808,9 +808,9 @@ nfsm_advance(struct nfsrv_descript *nd, int offs, int left) APPLESTATIC int nfsm_strtom(struct nfsrv_descript *nd, const char *cp, int siz) { - mbuf_t m2; + struct mbuf *m2; int xfer, left; - mbuf_t m1; + struct mbuf *m1; int rem, bytesize; u_int32_t *tl; char *cp2; @@ -1014,7 +1014,7 @@ APPLESTATIC void newnfs_trimleading(nd) struct nfsrv_descript *nd; { - mbuf_t m, n; + struct mbuf *m, *n; int offs; /* @@ -1059,7 +1059,7 @@ newnfs_trimleading(nd) APPLESTATIC void newnfs_trimtrailing(nd, mb, bpos) struct nfsrv_descript *nd; - mbuf_t mb; + struct mbuf *mb; caddr_t bpos; { @@ -2423,7 +2423,7 @@ nfsrv_mtostr(struct nfsrv_descript *nd, char *str, int siz) { char *cp; int xfer, len; - mbuf_t mp; + struct mbuf *mp; int rem, error = 0; mp = nd->nd_md; @@ -4437,7 +4437,7 @@ nfsrv_refstrbigenough(int siz, u_char **cpp, u_char **cpp2, int *slenp) APPLESTATIC void nfsrvd_rephead(struct nfsrv_descript *nd) { - mbuf_t mreq; + struct mbuf *mreq; /* * If this is a big reply, use a cluster. diff --git a/sys/fs/nfs/nfs_var.h b/sys/fs/nfs/nfs_var.h index 3f346ede8794..b98e4e5b5cb1 100644 --- a/sys/fs/nfs/nfs_var.h +++ b/sys/fs/nfs/nfs_var.h @@ -325,7 +325,7 @@ int nfsm_fhtom(struct nfsrv_descript *, u_int8_t *, int, int); int nfsm_advance(struct nfsrv_descript *, int, int); void *nfsm_dissct(struct nfsrv_descript *, int, int); void newnfs_trimleading(struct nfsrv_descript *); -void newnfs_trimtrailing(struct nfsrv_descript *, mbuf_t, +void newnfs_trimtrailing(struct nfsrv_descript *, struct mbuf *, caddr_t); void newnfs_copycred(struct nfscred *, struct ucred *); void newnfs_copyincred(struct ucred *, struct nfscred *); @@ -390,7 +390,7 @@ int nfsv4_fillattr(struct nfsrv_descript *, struct mount *, vnode_t, NFSACL_T *, struct vattr *, fhandle_t *, int, nfsattrbit_t *, struct ucred *, NFSPROC_T *, int, int, int, int, uint64_t, struct statfs *); void nfsrv_fillattr(struct nfsrv_descript *, struct nfsvattr *); -void nfsrv_adj(mbuf_t, int, int); +void nfsrv_adj(struct mbuf *, int, int); void nfsrv_postopattr(struct nfsrv_descript *, int, struct nfsvattr *); int nfsd_errmap(struct nfsrv_descript *); void nfsv4_uidtostr(uid_t, u_char **, int *); @@ -679,12 +679,12 @@ int nfsvno_namei(struct nfsrv_descript *, struct nameidata *, vnode_t, int, struct nfsexstuff *, NFSPROC_T *, vnode_t *); void nfsvno_setpathbuf(struct nameidata *, char **, u_long **); void nfsvno_relpathbuf(struct nameidata *); -int nfsvno_readlink(vnode_t, struct ucred *, NFSPROC_T *, mbuf_t *, - mbuf_t *, int *); +int nfsvno_readlink(vnode_t, struct ucred *, NFSPROC_T *, struct mbuf **, + struct mbuf **, int *); int nfsvno_read(vnode_t, off_t, int, struct ucred *, NFSPROC_T *, - mbuf_t *, mbuf_t *); -int nfsvno_write(vnode_t, off_t, int, int *, mbuf_t, char *, struct ucred *, - NFSPROC_T *); + struct mbuf **, struct mbuf **); +int nfsvno_write(vnode_t, off_t, int, int *, struct mbuf *, char *, + struct ucred *, NFSPROC_T *); int nfsvno_createsub(struct nfsrv_descript *, struct nameidata *, vnode_t *, struct nfsvattr *, int *, int32_t *, NFSDEV_T, struct nfsexstuff *); diff --git a/sys/fs/nfs/nfsrvcache.h b/sys/fs/nfs/nfsrvcache.h index 436dc4e76d1d..d576415c5920 100644 --- a/sys/fs/nfs/nfsrvcache.h +++ b/sys/fs/nfs/nfsrvcache.h @@ -53,7 +53,7 @@ struct nfsrvcache { u_int32_t rc_xid; /* rpc id number */ time_t rc_timestamp; /* Time done */ union { - mbuf_t repmb; /* Reply mbuf list OR */ + struct mbuf *repmb; /* Reply mbuf list OR */ int repstat; /* Reply status */ } rc_un; union { diff --git a/sys/fs/nfsserver/nfs_nfsdcache.c b/sys/fs/nfsserver/nfs_nfsdcache.c index 8dfd6cc0e9e3..f88b38cdb5b3 100644 --- a/sys/fs/nfsserver/nfs_nfsdcache.c +++ b/sys/fs/nfsserver/nfs_nfsdcache.c @@ -285,7 +285,7 @@ static void nfsrc_lock(struct nfsrvcache *rp); static void nfsrc_unlock(struct nfsrvcache *rp); static void nfsrc_wanted(struct nfsrvcache *rp); static void nfsrc_freecache(struct nfsrvcache *rp); -static int nfsrc_getlenandcksum(mbuf_t m1, u_int16_t *cksum); +static int nfsrc_getlenandcksum(struct mbuf *m1, u_int16_t *cksum); static void nfsrc_marksametcpconn(u_int64_t); /* @@ -460,7 +460,7 @@ nfsrvd_updatecache(struct nfsrv_descript *nd) { struct nfsrvcache *rp; struct nfsrvcache *retrp = NULL; - mbuf_t m; + struct mbuf *m; struct mtx *mutex; rp = nd->nd_rp; @@ -1013,10 +1013,10 @@ nfsrvd_derefcache(struct nfsrvcache *rp) * NFSRVCACHE_CHECKLEN bytes. */ static int -nfsrc_getlenandcksum(mbuf_t m1, u_int16_t *cksum) +nfsrc_getlenandcksum(struct mbuf *m1, u_int16_t *cksum) { int len = 0, cklen; - mbuf_t m; + struct mbuf *m; m = m1; while (m) { diff --git a/sys/fs/nfsserver/nfs_nfsdserv.c b/sys/fs/nfsserver/nfs_nfsdserv.c index e58fafd4e419..3dd160ae190c 100644 --- a/sys/fs/nfsserver/nfs_nfsdserv.c +++ b/sys/fs/nfsserver/nfs_nfsdserv.c @@ -665,7 +665,7 @@ nfsrvd_readlink(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, __unused struct nfsexstuff *exp) { u_int32_t *tl; - mbuf_t mp = NULL, mpend = NULL; + struct mbuf *mp = NULL, *mpend = NULL; int getret = 1, len; struct nfsvattr nva; struct thread *p = curthread; @@ -710,7 +710,7 @@ nfsrvd_read(struct nfsrv_descript *nd, __unused int isdgram, { u_int32_t *tl; int error = 0, cnt, getret = 1, gotproxystateid, reqlen, eof = 0; - mbuf_t m2, m3; + struct mbuf *m2, *m3; struct nfsvattr nva; off_t off = 0x0; struct nfsstate st, *stp = &st; @@ -5532,7 +5532,7 @@ nfsrvd_getxattr(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, __unused struct nfsexstuff *exp) { uint32_t *tl; - mbuf_t mp = NULL, mpend = NULL; + struct mbuf *mp = NULL, *mpend = NULL; int error, len; char *name; struct thread *p = curthread; diff --git a/sys/fs/nfsserver/nfs_nfsdstate.c b/sys/fs/nfsserver/nfs_nfsdstate.c index f4646d46a1be..a81719ab4e22 100644 --- a/sys/fs/nfsserver/nfs_nfsdstate.c +++ b/sys/fs/nfsserver/nfs_nfsdstate.c @@ -4417,7 +4417,7 @@ nfsrv_docallback(struct nfsclient *clp, int procnum, nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, struct nfsvattr *nap, nfsattrbit_t *attrbitp, int laytype, NFSPROC_T *p) { - mbuf_t m; + struct mbuf *m; u_int32_t *tl; struct nfsrv_descript *nd; struct ucred *cred; diff --git a/sys/fs/nfsserver/nfs_nfsdsubs.c b/sys/fs/nfsserver/nfs_nfsdsubs.c index a181a9b9ed8d..0f58891448b9 100644 --- a/sys/fs/nfsserver/nfs_nfsdsubs.c +++ b/sys/fs/nfsserver/nfs_nfsdsubs.c @@ -1274,9 +1274,9 @@ static short *nfsrv_v4errmap[] = { * boundary and only trims off the back end */ APPLESTATIC void -nfsrv_adj(mbuf_t mp, int len, int nul) +nfsrv_adj(struct mbuf *mp, int len, int nul) { - mbuf_t m; + struct mbuf *m; int count, i; char *cp; @@ -1838,7 +1838,7 @@ nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, NFSPATHLEN_T *outlenp) { char *fromcp, *tocp, val = '\0'; - mbuf_t md; + struct mbuf *md; int i; int rem, len, error = 0, pubtype = 0, outlen = 0, percent = 0; char digit;