]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: osd_client: fix endianness bug in osd_req_encode_op()
authorAlex Elder <elder@dreawmhost.com>
Fri, 20 Apr 2012 20:49:43 +0000 (15:49 -0500)
committerAlex Elder <elder@dreamhost.com>
Mon, 14 May 2012 17:12:22 +0000 (12:12 -0500)
commita555ef5d69f4273a9f3a56c438a68e0540019c11
tree04bf0db8822f6675c732b2b0e3fa54e2f1c8f755
parent8bfbf453c11c2ad46e3fc394f5c9c0d4f5462707
ceph: osd_client: fix endianness bug in osd_req_encode_op()

From Al Viro <viro@zeniv.linux.org.uk>

Al Viro noticed that we were using a non-cpu-encoded value in
a switch statement in osd_req_encode_op().  The result would
clearly not work correctly on a big-endian machine.

Signed-off-by: Alex Elder <elder@dreamhost.com>
net/ceph/osd_client.c