diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-12-05 16:35:44 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-06 10:46:52 -0500 |
commit | dd4564715eae2c4136f278da9ae1c3bb5af3e509 (patch) | |
tree | a0e6d56de86bdc9ce57f5663d2d0840c3ea3179b /net/sunrpc/xprtsock.c | |
parent | 9d29231690925915015c21c1fff73c7118099843 (diff) |
SUNRPC: Rename skb_reader_t and friends
Clean-up: hch suggested that the RPC client shouldn't pollute the name
space used by the generic skb manipulation routines in net/core/skbuff.c.
Rename a couple of types in xdr.h to adhere to this convention.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 450c350a0c62..ad61b3e9123b 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -651,7 +651,7 @@ static void xs_udp_data_ready(struct sock *sk, int len) | |||
651 | read_unlock(&sk->sk_callback_lock); | 651 | read_unlock(&sk->sk_callback_lock); |
652 | } | 652 | } |
653 | 653 | ||
654 | static inline void xs_tcp_read_fraghdr(struct rpc_xprt *xprt, skb_reader_t *desc) | 654 | static inline void xs_tcp_read_fraghdr(struct rpc_xprt *xprt, struct xdr_skb_reader *desc) |
655 | { | 655 | { |
656 | struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); | 656 | struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); |
657 | size_t len, used; | 657 | size_t len, used; |
@@ -697,7 +697,7 @@ static void xs_tcp_check_fraghdr(struct sock_xprt *transport) | |||
697 | } | 697 | } |
698 | } | 698 | } |
699 | 699 | ||
700 | static inline void xs_tcp_read_xid(struct sock_xprt *transport, skb_reader_t *desc) | 700 | static inline void xs_tcp_read_xid(struct sock_xprt *transport, struct xdr_skb_reader *desc) |
701 | { | 701 | { |
702 | size_t len, used; | 702 | size_t len, used; |
703 | char *p; | 703 | char *p; |
@@ -717,7 +717,7 @@ static inline void xs_tcp_read_xid(struct sock_xprt *transport, skb_reader_t *de | |||
717 | xs_tcp_check_fraghdr(transport); | 717 | xs_tcp_check_fraghdr(transport); |
718 | } | 718 | } |
719 | 719 | ||
720 | static inline void xs_tcp_read_request(struct rpc_xprt *xprt, skb_reader_t *desc) | 720 | static inline void xs_tcp_read_request(struct rpc_xprt *xprt, struct xdr_skb_reader *desc) |
721 | { | 721 | { |
722 | struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); | 722 | struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); |
723 | struct rpc_rqst *req; | 723 | struct rpc_rqst *req; |
@@ -739,7 +739,7 @@ static inline void xs_tcp_read_request(struct rpc_xprt *xprt, skb_reader_t *desc | |||
739 | rcvbuf = &req->rq_private_buf; | 739 | rcvbuf = &req->rq_private_buf; |
740 | len = desc->count; | 740 | len = desc->count; |
741 | if (len > transport->tcp_reclen - transport->tcp_offset) { | 741 | if (len > transport->tcp_reclen - transport->tcp_offset) { |
742 | skb_reader_t my_desc; | 742 | struct xdr_skb_reader my_desc; |
743 | 743 | ||
744 | len = transport->tcp_reclen - transport->tcp_offset; | 744 | len = transport->tcp_reclen - transport->tcp_offset; |
745 | memcpy(&my_desc, desc, sizeof(my_desc)); | 745 | memcpy(&my_desc, desc, sizeof(my_desc)); |
@@ -795,7 +795,7 @@ out: | |||
795 | xs_tcp_check_fraghdr(transport); | 795 | xs_tcp_check_fraghdr(transport); |
796 | } | 796 | } |
797 | 797 | ||
798 | static inline void xs_tcp_read_discard(struct sock_xprt *transport, skb_reader_t *desc) | 798 | static inline void xs_tcp_read_discard(struct sock_xprt *transport, struct xdr_skb_reader *desc) |
799 | { | 799 | { |
800 | size_t len; | 800 | size_t len; |
801 | 801 | ||
@@ -813,7 +813,7 @@ static int xs_tcp_data_recv(read_descriptor_t *rd_desc, struct sk_buff *skb, uns | |||
813 | { | 813 | { |
814 | struct rpc_xprt *xprt = rd_desc->arg.data; | 814 | struct rpc_xprt *xprt = rd_desc->arg.data; |
815 | struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); | 815 | struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); |
816 | skb_reader_t desc = { | 816 | struct xdr_skb_reader desc = { |
817 | .skb = skb, | 817 | .skb = skb, |
818 | .offset = offset, | 818 | .offset = offset, |
819 | .count = len, | 819 | .count = len, |