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()
233 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init()
238 BUG_ON(ceph_msg_data_cache); in ceph_msgr_slab_init()
251 BUG_ON(!ceph_msg_data_cache); in ceph_msgr_slab_exit()
255 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit()
267 BUG_ON(zero_page == NULL); in _ceph_msgr_exit()
279 BUG_ON(zero_page != NULL); in ceph_msgr_init()
299 BUG_ON(ceph_msgr_wq == NULL); in ceph_msgr_exit()
470 BUG_ON(con->sock); in ceph_tcp_connect()
547 BUG_ON(page_offset + length > PAGE_SIZE); in ceph_tcp_recvpage()
672 BUG_ON(con->in_msg->con != con); in reset_connection()
680 BUG_ON(con->out_msg->con != con); in reset_connection()
787 BUG_ON(con->out_skip); in con_out_kvec_reset()
799 BUG_ON(con->out_skip); in con_out_kvec_add()
800 BUG_ON(index >= ARRAY_SIZE(con->out_kvec)); in con_out_kvec_add()
820 BUG_ON(con->out_kvec_bytes < skip); in con_out_kvec_skip()
821 BUG_ON(!con->out_kvec_left); in con_out_kvec_skip()
847 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
868 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bio_advance()
869 BUG_ON(bytes > bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
874 BUG_ON(!cursor->last_piece); in ceph_msg_data_bio_advance()
888 BUG_ON(cursor->last_piece); in ceph_msg_data_bio_advance()
889 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
905 BUG_ON(cursor->resid < bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_cursor_init()
927 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bvecs_advance()
928 BUG_ON(bytes > bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_advance()
933 BUG_ON(!cursor->last_piece); in ceph_msg_data_bvecs_advance()
940 BUG_ON(cursor->last_piece); in ceph_msg_data_bvecs_advance()
941 BUG_ON(cursor->resid < bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_advance()
957 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_cursor_init()
959 BUG_ON(!data->pages); in ceph_msg_data_pages_cursor_init()
960 BUG_ON(!data->length); in ceph_msg_data_pages_cursor_init()
966 BUG_ON(page_count > (int)USHRT_MAX); in ceph_msg_data_pages_cursor_init()
968 BUG_ON(length > SIZE_MAX - cursor->page_offset); in ceph_msg_data_pages_cursor_init()
978 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_next()
980 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_next()
981 BUG_ON(cursor->page_offset >= PAGE_SIZE); in ceph_msg_data_pages_next()
995 BUG_ON(cursor->data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_advance()
997 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE); in ceph_msg_data_pages_advance()
1011 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_advance()
1030 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_cursor_init()
1033 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
1038 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
1054 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_next()
1057 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
1059 BUG_ON(!cursor->page); in ceph_msg_data_pagelist_next()
1060 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
1078 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_advance()
1081 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
1083 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
1084 BUG_ON((cursor->offset & ~PAGE_MASK) + bytes > PAGE_SIZE); in ceph_msg_data_pagelist_advance()
1099 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head)); in ceph_msg_data_pagelist_advance()
1146 BUG_ON(!length); in ceph_msg_data_cursor_init()
1147 BUG_ON(length > msg->data_length); in ceph_msg_data_cursor_init()
1148 BUG_ON(list_empty(&msg->data)); in ceph_msg_data_cursor_init()
1190 BUG_ON(!page); in ceph_msg_data_next()
1191 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_next()
1192 BUG_ON(!*length); in ceph_msg_data_next()
1193 BUG_ON(*length > cursor->resid); in ceph_msg_data_next()
1209 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1234 BUG_ON(list_is_last(&cursor->data->links, cursor->data_head)); in ceph_msg_data_advance()
1251 BUG_ON(!msg); in prepare_message_data()
1252 BUG_ON(!data_len); in prepare_message_data()
1304 BUG_ON(list_empty(&con->out_queue)); in prepare_write_message()
1307 BUG_ON(m->con != con); in prepare_write_message()
1545 BUG_ON(!con->out_kvec_left); in write_partial_kvec()
1571 BUG_ON(kaddr == NULL); in ceph_crc32c_page()
1713 BUG_ON(con->in_msg != NULL); in prepare_read_message()
2322 BUG_ON(!section); in read_partial_message_section()
2325 BUG_ON(section->iov_base == NULL); in read_partial_message_section()
2350 BUG_ON(!msg); in read_partial_msg_data()
2452 BUG_ON(!con->in_msg ^ skip); in read_partial_message()
2463 BUG_ON(!con->in_msg); in read_partial_message()
2464 BUG_ON(con->in_msg->con != con); in read_partial_message()
2551 BUG_ON(con->in_msg->con != con); in process_message()
2603 BUG_ON(con->sock); in try_write()
2610 BUG_ON(con->in_msg); in try_write()
2623 BUG_ON(!con->sock); in try_write()
2697 BUG_ON(!con->sock); in try_read()
2907 BUG_ON(ret == -ENOENT); in con_backoff()
2962 BUG_ON(con->sock); in ceph_con_workfn()
2967 BUG_ON(con->sock); in ceph_con_workfn()
3027 BUG_ON(con->in_msg->con != con); in con_fault()
3091 BUG_ON(msg->con != con); in msg_con_set()
3113 BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len)); in ceph_con_send()
3127 BUG_ON(!list_empty(&msg->list_head)); in ceph_con_send()
3167 BUG_ON(con->out_skip); in ceph_msg_revoke()
3172 BUG_ON(!msg->data_length); in ceph_msg_revoke()
3292 BUG_ON(!pages); in ceph_msg_data_add_pages()
3293 BUG_ON(!length); in ceph_msg_data_add_pages()
3296 BUG_ON(!data); in ceph_msg_data_add_pages()
3311 BUG_ON(!pagelist); in ceph_msg_data_add_pagelist()
3312 BUG_ON(!pagelist->length); in ceph_msg_data_add_pagelist()
3315 BUG_ON(!data); in ceph_msg_data_add_pagelist()
3330 BUG_ON(!data); in ceph_msg_data_add_bio()
3346 BUG_ON(!data); in ceph_msg_data_add_bvecs()
3420 BUG_ON(!middle_len); in ceph_alloc_middle()
3421 BUG_ON(msg->middle); in ceph_alloc_middle()
3451 BUG_ON(con->in_msg != NULL); in ceph_con_in_msg_alloc()
3452 BUG_ON(!con->ops->alloc_msg); in ceph_con_in_msg_alloc()
3463 BUG_ON(*skip); in ceph_con_in_msg_alloc()