libceph: abstract message data
authorAlex Elder <elder@inktank.com>
Sat, 2 Mar 2013 00:00:16 +0000 (18:00 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:55 +0000 (21:16 -0700)
commit437945094fed0deb1810e8da95465c8f26bc6f80
treeafd9e83b01b06bcad1e8933df3b990479bd558fa
parentf9e15777afd87585f2222dfd446c2e52deb65eba
libceph: abstract message data

Group the types of message data into an abstract structure with a
type indicator and a union containing fields appropriate to the
type of data it represents.  Use this to represent the pages,
pagelist, bio, and trail in a ceph message.

Verify message data is of type NONE in ceph_msg_data_set_*()
routines.  Since information about message data of type NONE really
should not be interpreted, get rid of the other assertions in those
functions.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
include/linux/ceph/messenger.h
net/ceph/messenger.c
This page took 0.026322 seconds and 5 git commands to generate.