kernel_optimize_test/net/ceph
Alex Elder a9a0c51af4 libceph: separate CRC calculation from byte swapping
Calculate CRC in a separate step from rearranging the byte order
of the result, to improve clarity and readability.

Use offsetof() to determine the number of bytes to include in the
CRC calculation.

In read_partial_message(), switch which value gets byte-swapped,
since the just-computed CRC is already likely to be in a register.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-22 10:47:51 -05:00
..
crush
armor.c
auth_none.c
auth_none.h
auth_x_protocol.h
auth_x.c
auth_x.h
auth.c
buffer.c
ceph_common.c ceph: ensure Boolean options support both senses 2012-03-22 10:47:51 -05:00
ceph_fs.c
ceph_hash.c
ceph_strings.c
crypto.c
crypto.h
debugfs.c
Kconfig
Makefile
messenger.c libceph: separate CRC calculation from byte swapping 2012-03-22 10:47:51 -05:00
mon_client.c
msgpool.c
osd_client.c
osdmap.c libceph: fix overflow check in crush_decode() 2012-03-22 10:47:45 -05:00
pagelist.c
pagevec.c