diff -X /home/cel/src/linux/dont-diff -Naurp old/fs/nfs/nfs2xdr.c new/fs/nfs/nfs2xdr.c --- old/fs/nfs/nfs2xdr.c Tue Oct 28 13:12:03 2003 +++ new/fs/nfs/nfs2xdr.c Tue Oct 28 13:21:16 2003 @@ -87,17 +87,6 @@ xdr_decode_fhandle(u32 *p, struct nfs_fh return p + XDR_QUADLEN(NFS2_FHSIZE); } -static inline u32 * -xdr_decode_string2(u32 *p, char **string, unsigned int *len, - unsigned int maxlen) -{ - *len = ntohl(*p++); - if (*len > maxlen) - return NULL; - *string = (char *) p; - return p + XDR_QUADLEN(*len); -} - static inline u32* xdr_decode_time(u32 *p, u64 *timep) { @@ -106,7 +95,7 @@ xdr_decode_time(u32 *p, u64 *timep) return p; } -static inline u32 * +static u32 * xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr) { fattr->type = (enum nfs_ftype) ntohl(*p++); diff -X /home/cel/src/linux/dont-diff -Naurp old/fs/nfs/nfs3xdr.c new/fs/nfs/nfs3xdr.c --- old/fs/nfs/nfs3xdr.c Tue Oct 28 13:12:03 2003 +++ new/fs/nfs/nfs3xdr.c Tue Oct 28 13:21:16 2003 @@ -153,18 +153,7 @@ xdr_encode_time3(u32 *p, u64 time) return p; } -static inline u32 * -xdr_decode_string2(u32 *p, char **string, unsigned int *len, - unsigned int maxlen) -{ - *len = ntohl(*p++); - if (*len > maxlen) - return NULL; - *string = (char *) p; - return p + XDR_QUADLEN(*len); -} - -static inline u32 * +static u32 * xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr) { unsigned int type; diff -X /home/cel/src/linux/dont-diff -Naurp old/include/linux/sunrpc/xprt.h new/include/linux/sunrpc/xprt.h --- old/include/linux/sunrpc/xprt.h Tue Oct 28 13:12:03 2003 +++ new/include/linux/sunrpc/xprt.h Tue Oct 28 13:21:16 2003 @@ -67,15 +67,6 @@ struct rpc_timeout { }; /* - * This is the RPC buffer - */ -struct rpc_iov { - struct iovec io_vec[MAX_IOVEC]; - unsigned int io_nr; - unsigned int io_len; -}; - -/* * This describes a complete RPC request */ struct rpc_rqst { diff -X /home/cel/src/linux/dont-diff -Naurp old/net/sunrpc/xdr.c new/net/sunrpc/xdr.c --- old/net/sunrpc/xdr.c Tue Oct 28 13:12:03 2003 +++ new/net/sunrpc/xdr.c Tue Oct 28 13:21:16 2003 @@ -209,24 +209,6 @@ void xdr_shift_iovec(struct iovec *iov, } /* - * Zero the last n bytes in an iovec array of 'nr' elements - */ -void xdr_zero_iovec(struct iovec *iov, int nr, size_t n) -{ - struct iovec *pvec; - - for (pvec = iov + nr - 1; n && nr > 0; nr--, pvec--) { - if (n < pvec->iov_len) { - memset((char *)pvec->iov_base + pvec->iov_len - n, 0, n); - n = 0; - } else { - memset(pvec->iov_base, 0, pvec->iov_len); - n -= pvec->iov_len; - } - } -} - -/* * Map a struct xdr_buf into an iovec array. */ int xdr_kmap(struct iovec *iov_base, struct xdr_buf *xdr, unsigned int base) diff -X /home/cel/src/linux/dont-diff -Naurp old/net/sunrpc/xprt.c new/net/sunrpc/xprt.c --- old/net/sunrpc/xprt.c Tue Oct 28 13:12:03 2003 +++ new/net/sunrpc/xprt.c Tue Oct 28 13:21:33 2003 @@ -145,37 +145,6 @@ xprt_from_sock(struct sock *sk) * Adjust the iovec to move on 'n' bytes */ -extern inline void -xprt_move_iov(struct msghdr *msg, struct iovec *niv, unsigned amount) -{ - struct iovec *iv=msg->msg_iov; - int i; - - /* - * Eat any sent iovecs - */ - while (iv->iov_len <= amount) { - amount -= iv->iov_len; - iv++; - msg->msg_iovlen--; - } - - /* - * And chew down the partial one - */ - niv[0].iov_len = iv->iov_len-amount; - niv[0].iov_base =((unsigned char *)iv->iov_base)+amount; - iv++; - - /* - * And copy any others - */ - for(i = 1; i < msg->msg_iovlen; i++) - niv[i]=*iv++; - - msg->msg_iov=niv; -} - /* * Write data to socket. */