]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: messenger: update "to" in read_partial() caller
authorAlex Elder <elder@inktank.com>
Thu, 10 May 2012 15:29:50 +0000 (10:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:04 +0000 (11:38 -0800)
commitdd22ce515dc6f8a69957473f1ce0d0d8f043b06a
tree8ca4b2bd4c5e02f3eaaadb27ea8f873b4df09af4
parentd0d7af68e9da4d8ad24052151d5d4add6464f505
ceph: messenger: update "to" in read_partial() caller

(cherry picked from commit e6cee71fac27c946a0bbad754dd076e66c4e9dbd)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c