diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ceph/messenger.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 252e01b7f7de..af786b29f7a4 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
| @@ -64,11 +64,7 @@ struct ceph_messenger { | |||
| 64 | u32 required_features; | 64 | u32 required_features; |
| 65 | }; | 65 | }; |
| 66 | 66 | ||
| 67 | #define ceph_msg_has_pages(m) ((m)->p.type == CEPH_MSG_DATA_PAGES) | 67 | #define ceph_msg_has_data(m) ((m)->data.type != CEPH_MSG_DATA_NONE) |
| 68 | #define ceph_msg_has_pagelist(m) ((m)->l.type == CEPH_MSG_DATA_PAGELIST) | ||
| 69 | #ifdef CONFIG_BLOCK | ||
| 70 | #define ceph_msg_has_bio(m) ((m)->b.type == CEPH_MSG_DATA_BIO) | ||
| 71 | #endif /* CONFIG_BLOCK */ | ||
| 72 | 68 | ||
| 73 | enum ceph_msg_data_type { | 69 | enum ceph_msg_data_type { |
| 74 | CEPH_MSG_DATA_NONE, /* message contains no data payload */ | 70 | CEPH_MSG_DATA_NONE, /* message contains no data payload */ |
| @@ -145,11 +141,7 @@ struct ceph_msg { | |||
| 145 | struct ceph_buffer *middle; | 141 | struct ceph_buffer *middle; |
| 146 | 142 | ||
| 147 | /* data payload */ | 143 | /* data payload */ |
| 148 | struct ceph_msg_data p; /* pages */ | 144 | struct ceph_msg_data data; |
| 149 | struct ceph_msg_data l; /* pagelist */ | ||
| 150 | #ifdef CONFIG_BLOCK | ||
| 151 | struct ceph_msg_data b; /* bio */ | ||
| 152 | #endif /* CONFIG_BLOCK */ | ||
| 153 | 145 | ||
| 154 | struct ceph_connection *con; | 146 | struct ceph_connection *con; |
| 155 | struct list_head list_head; /* links for connection lists */ | 147 | struct list_head list_head; /* links for connection lists */ |
