Lines Matching refs:BUG_ON

121 	BUG_ON(!con_flag_valid(con_flag));  in con_flag_clear()
128 BUG_ON(!con_flag_valid(con_flag)); in con_flag_set()
135 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test()
143 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test_and_clear()
151 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test_and_set()
238 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init()
246 BUG_ON(ceph_msg_data_cache); in ceph_msgr_slab_init()
262 BUG_ON(!ceph_msg_data_cache); in ceph_msgr_slab_exit()
266 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit()
280 BUG_ON(zero_page == NULL); in _ceph_msgr_exit()
288 BUG_ON(zero_page != NULL); in ceph_msgr_init()
312 BUG_ON(ceph_msgr_wq == NULL); in ceph_msgr_exit()
482 BUG_ON(con->sock); in ceph_tcp_connect()
543 BUG_ON(page_offset + length > PAGE_SIZE); in ceph_tcp_recvpage()
546 BUG_ON(!kaddr); in ceph_tcp_recvpage()
639 BUG_ON(msg->con == NULL); in ceph_msg_remove()
663 BUG_ON(con->in_msg->con != con); in reset_connection()
779 BUG_ON(con->out_skip); in con_out_kvec_reset()
791 BUG_ON(con->out_skip); in con_out_kvec_add()
792 BUG_ON(index >= ARRAY_SIZE(con->out_kvec)); in con_out_kvec_add()
812 BUG_ON(con->out_kvec_bytes < skip); in con_out_kvec_skip()
813 BUG_ON(!con->out_kvec_left); in con_out_kvec_skip()
834 BUG_ON(data->type != CEPH_MSG_DATA_BIO); in ceph_msg_data_bio_cursor_init()
837 BUG_ON(!bio); in ceph_msg_data_bio_cursor_init()
854 BUG_ON(data->type != CEPH_MSG_DATA_BIO); in ceph_msg_data_bio_next()
857 BUG_ON(!bio); in ceph_msg_data_bio_next()
862 BUG_ON(*page_offset >= PAGE_SIZE); in ceph_msg_data_bio_next()
867 BUG_ON(*length > cursor->resid); in ceph_msg_data_bio_next()
868 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_bio_next()
879 BUG_ON(cursor->data->type != CEPH_MSG_DATA_BIO); in ceph_msg_data_bio_advance()
882 BUG_ON(!bio); in ceph_msg_data_bio_advance()
888 BUG_ON(cursor->resid < bytes); in ceph_msg_data_bio_advance()
909 BUG_ON(!cursor->resid); in ceph_msg_data_bio_advance()
910 BUG_ON(!bio); in ceph_msg_data_bio_advance()
930 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_cursor_init()
932 BUG_ON(!data->pages); in ceph_msg_data_pages_cursor_init()
933 BUG_ON(!data->length); in ceph_msg_data_pages_cursor_init()
939 BUG_ON(page_count > (int)USHRT_MAX); in ceph_msg_data_pages_cursor_init()
941 BUG_ON(length > SIZE_MAX - cursor->page_offset); in ceph_msg_data_pages_cursor_init()
951 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_next()
953 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_next()
954 BUG_ON(cursor->page_offset >= PAGE_SIZE); in ceph_msg_data_pages_next()
968 BUG_ON(cursor->data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_advance()
970 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE); in ceph_msg_data_pages_advance()
984 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_advance()
1003 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_cursor_init()
1006 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
1011 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
1027 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_next()
1030 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
1032 BUG_ON(!cursor->page); in ceph_msg_data_pagelist_next()
1033 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
1051 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_advance()
1054 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
1056 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
1057 BUG_ON((cursor->offset & ~PAGE_MASK) + bytes > PAGE_SIZE); in ceph_msg_data_pagelist_advance()
1072 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head)); in ceph_msg_data_pagelist_advance()
1116 BUG_ON(!length); in ceph_msg_data_cursor_init()
1117 BUG_ON(length > msg->data_length); in ceph_msg_data_cursor_init()
1118 BUG_ON(list_empty(&msg->data)); in ceph_msg_data_cursor_init()
1156 BUG_ON(!page); in ceph_msg_data_next()
1157 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_next()
1158 BUG_ON(!*length); in ceph_msg_data_next()
1174 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1196 BUG_ON(list_is_last(&cursor->data->links, cursor->data_head)); in ceph_msg_data_advance()
1215 BUG_ON(!msg); in prepare_message_data()
1216 BUG_ON(!data_len); in prepare_message_data()
1274 BUG_ON(list_empty(&con->out_queue)); in prepare_write_message()
1277 BUG_ON(m->con != con); in prepare_write_message()
1297 BUG_ON(le32_to_cpu(m->hdr.front_len) != m->front.iov_len); in prepare_write_message()
1508 BUG_ON(!con->out_kvec_left); in write_partial_kvec()
1534 BUG_ON(kaddr == NULL); in ceph_crc32c_page()
1666 BUG_ON(con->in_msg != NULL); in prepare_read_message()
2230 BUG_ON(!section); in read_partial_message_section()
2233 BUG_ON(section->iov_base == NULL); in read_partial_message_section()
2258 BUG_ON(!msg); in read_partial_msg_data()
2356 BUG_ON(!con->in_msg ^ skip); in read_partial_message()
2374 BUG_ON(!con->in_msg); in read_partial_message()
2375 BUG_ON(con->in_msg->con != con); in read_partial_message()
2466 BUG_ON(con->in_msg->con != con); in process_message()
2508 BUG_ON(con->sock); in try_write()
2515 BUG_ON(con->in_msg); in try_write()
2601 BUG_ON(!con->sock); in try_read()
2807 BUG_ON(ret == -ENOENT); in con_backoff()
2858 BUG_ON(con->sock); in con_work()
2863 BUG_ON(con->sock); in con_work()
2923 BUG_ON(con->in_msg->con != con); in con_fault()
3004 BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len)); in ceph_con_send()
3016 BUG_ON(msg->con != NULL); in ceph_con_send()
3018 BUG_ON(msg->con == NULL); in ceph_con_send()
3020 BUG_ON(!list_empty(&msg->list_head)); in ceph_con_send()
3053 BUG_ON(msg->con == NULL); in ceph_msg_revoke()
3061 BUG_ON(con->out_skip); in ceph_msg_revoke()
3066 BUG_ON(!msg->data_length); in ceph_msg_revoke()
3096 BUG_ON(msg == NULL); in ceph_msg_revoke_incoming()
3175 BUG_ON(!pages); in ceph_msg_data_add_pages()
3176 BUG_ON(!length); in ceph_msg_data_add_pages()
3179 BUG_ON(!data); in ceph_msg_data_add_pages()
3194 BUG_ON(!pagelist); in ceph_msg_data_add_pagelist()
3195 BUG_ON(!pagelist->length); in ceph_msg_data_add_pagelist()
3198 BUG_ON(!data); in ceph_msg_data_add_pagelist()
3212 BUG_ON(!bio); in ceph_msg_data_add_bio()
3215 BUG_ON(!data); in ceph_msg_data_add_bio()
3291 BUG_ON(!middle_len); in ceph_alloc_middle()
3292 BUG_ON(msg->middle); in ceph_alloc_middle()
3322 BUG_ON(con->in_msg != NULL); in ceph_con_in_msg_alloc()
3323 BUG_ON(!con->ops->alloc_msg); in ceph_con_in_msg_alloc()
3334 BUG_ON(*skip); in ceph_con_in_msg_alloc()
3337 BUG_ON(con->in_msg->con == NULL); in ceph_con_in_msg_alloc()