[sheepdog] [PATCH 1/8] sheep: remove bug_on for struct sd_node

Liu Yuan namei.unix at gmail.com
Fri Sep 13 12:06:33 CEST 2013


It just prevents people doing something useful.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 include/internal_proto.h |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/internal_proto.h b/include/internal_proto.h
index 7d1df2c..a33b376 100644
--- a/include/internal_proto.h
+++ b/include/internal_proto.h
@@ -123,8 +123,6 @@ struct node_id {
 	uint8_t pad[4];
 };
 
-#define SD_NODE_SIZE 56
-
 struct sd_node {
 	struct node_id  nid;
 	uint16_t	nr_vnodes;
@@ -181,12 +179,6 @@ struct sd_md_info {
 	int nr;
 };
 
-static inline __attribute__((used)) void __sd_epoch_format_build_bug_ons(void)
-{
-	/* never called, only for checking BUILD_BUG_ON()s */
-	BUILD_BUG_ON(sizeof(struct sd_node) != SD_NODE_SIZE);
-}
-
 enum rw_state {
 	RW_PREPARE_LIST, /* the recovery thread is preparing object list */
 	RW_RECOVER_OBJ, /* the thread is recoering objects */
-- 
1.7.9.5




More information about the sheepdog mailing list