diff options
| author | Alex Elder <elder@inktank.com> | 2012-06-11 14:57:13 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 11:38:28 -0800 |
| commit | a8651271bb5d77402251bf35554d1f320463c949 (patch) | |
| tree | 60805b823e098a6a40f1c2f8fdcbc4d3ae1e2f47 /include/linux/padata.h | |
| parent | 8a0566f6aac534a20ed436e3bed56b736cef4c40 (diff) | |
| download | lwn-a8651271bb5d77402251bf35554d1f320463c949.tar.gz lwn-a8651271bb5d77402251bf35554d1f320463c949.zip | |
libceph: small changes to messenger.c
(cherry picked from commit 5821bd8ccdf5d17ab2c391c773756538603838c3)
This patch gathers a few small changes in "net/ceph/messenger.c":
out_msg_pos_next()
- small logic change that mostly affects indentation
write_partial_msg_pages().
- use a local variable trail_off to represent the offset into
a message of the trail portion of the data (if present)
- once we are in the trail portion we will always be there, so we
don't always need to check against our data position
- avoid computing len twice after we've reached the trail
- get rid of the variable tmpcrc, which is not needed
- trail_off and trail_len never change so mark them const
- update some comments
read_partial_message_bio()
- bio_iovec_idx() will never return an error, so don't bother
checking for it
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/padata.h')
0 files changed, 0 insertions, 0 deletions
