]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9b84c5e2d5da5ede35e5ce1845e209d8e516dd4
tree3ca18b5b45e666ff307ed440c5a1b6e38fc7b33b
parent9cc298212145169d89f8ae62a72fff8d765384be
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