]> git.ipfire.org Git - people/ms/linux.git/commit - net/ceph/messenger.c
ceph: messenger: update "to" in read_partial() caller
authorAlex Elder <elder@inktank.com>
Thu, 10 May 2012 15:29:50 +0000 (10:29 -0500)
committerAlex Elder <elder@dreamhost.com>
Mon, 14 May 2012 17:16:42 +0000 (12:16 -0500)
commite6cee71fac27c946a0bbad754dd076e66c4e9dbd
tree9c20b73601c5904376e4e986877c7ad75da0927f
parent57dac9d1620942608306d8c17c98a9d1568ffdf4
ceph: messenger: update "to" in read_partial() caller

read_partial() always increases whatever "to" value is supplied by
adding the requested size to it, and that's the only thing it does
with that pointed-to value.

Do that pointer advance in the caller (and then only when the
updated value will be subsequently used), and change the "to"
parameter to be an in-only and non-pointer value.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/messenger.c