]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
SUNRPC: skb_read_bits is the same as xs_tcp_copy_data
authorChuck Lever <chuck.lever@oracle.com>
Tue, 5 Dec 2006 21:35:41 +0000 (16:35 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Dec 2006 15:46:52 +0000 (10:46 -0500)
commit9d29231690925915015c21c1fff73c7118099843
treeac1018a80198a7e493296f5fc8e9fbd8dac7d0f0
parent7559c7a28fbcaa0bca028eeebd5f251b09befe6b
SUNRPC: skb_read_bits is the same as xs_tcp_copy_data

Clean-up: eliminate xs_tcp_copy_data -- it's exactly the same logic as the
common routine skb_read_bits.  The UDP and TCP socket read code now share
the same routine for copying data into an xdr_buf.

Now that skb_read_bits() is exported, rename it to avoid confusing it with
a generic skb_* function.  As these functions are XDR-specific, they should
not have names that suggest they are of generic use.  Also rename
skb_read_and_csum_bits() to be consistent.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/xdr.h
net/sunrpc/socklib.c
net/sunrpc/xprtsock.c