]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix wrong opcode use in osd_req_encode_op()
authorAlex Elder <elder@inktank.com>
Mon, 4 Mar 2013 17:08:29 +0000 (11:08 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:13 +0000 (21:16 -0700)
commit596bc493fae45170efa31acb40a2ad35b1027241
tree4ff0bf8a8a5bf6fa4777e5778f1fe02e1243e820
parent874d9ca808973dbfc88b6852669bdaedcdde1fa4
libceph: fix wrong opcode use in osd_req_encode_op()

The new cases added to osd_req_encode_op() caused a new sparse
error, which highlighted an existing problem that had been
overlooked since it was originally checked in.  When an unsupported
opcode is found the destination rather than the source opcode was
being used in the error message.  The two differ in their byte
order, and we want to be using the one in the source.

Fix the problem in both spots.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/osd_client.c