svcrpc: don't byte-swap sk_reclen in place
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 3 Dec 2012 21:11:13 +0000 (16:11 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Dec 2012 12:47:23 +0000 (07:47 -0500)
commitcc248d4b1ddf05fefc1373d9d7a4dd1df71b6190
tree3ca18b5b45e666ff307ed440c5a1b6e38fc7b33b
parent6c1e82a4b74ad0c8b45c833a4409f153199d9be4
svcrpc: don't byte-swap sk_reclen in place

Byte-swapping in place is always a little dubious.

Let's instead define this field to always be big-endian, and do the
swapping on demand where we need it.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c