]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix and clarify ceph_decode_need() sizes
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 13 Mar 2014 14:36:16 +0000 (16:36 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:47 +0000 (21:07 -0700)
commit668b88da8c9592d1cbefcef293ef54bcdb53b17e
tree56c1aa1d31330fb1b687d159ee89124f46f90861
parent6f2c4d8eda0edbe4ca6dcbda76dc5d87da2f4344
libceph: fix and clarify ceph_decode_need() sizes

Sum up sizeof(...) results instead of (incorrectly) hard-coding the
number of bytes, expressed in ints and longs.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osdmap.c