Lines Matching refs:BUG_ON
122 BUG_ON(!con_flag_valid(con_flag)); in con_flag_clear()
129 BUG_ON(!con_flag_valid(con_flag)); in con_flag_set()
136 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test()
144 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test_and_clear()
152 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test_and_set()
240 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init()
248 BUG_ON(ceph_msg_data_cache); in ceph_msgr_slab_init()
264 BUG_ON(!ceph_msg_data_cache); in ceph_msgr_slab_exit()
268 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit()
280 BUG_ON(zero_page == NULL); in _ceph_msgr_exit()
292 BUG_ON(zero_page != NULL); in ceph_msgr_init()
313 BUG_ON(ceph_msgr_wq == NULL); in ceph_msgr_exit()
483 BUG_ON(con->sock); in ceph_tcp_connect()
544 BUG_ON(page_offset + length > PAGE_SIZE); in ceph_tcp_recvpage()
547 BUG_ON(!kaddr); in ceph_tcp_recvpage()
661 BUG_ON(con->in_msg->con != con); in reset_connection()
669 BUG_ON(con->out_msg->con != con); in reset_connection()
776 BUG_ON(con->out_skip); in con_out_kvec_reset()
788 BUG_ON(con->out_skip); in con_out_kvec_add()
789 BUG_ON(index >= ARRAY_SIZE(con->out_kvec)); in con_out_kvec_add()
809 BUG_ON(con->out_kvec_bytes < skip); in con_out_kvec_skip()
810 BUG_ON(!con->out_kvec_left); in con_out_kvec_skip()
831 BUG_ON(data->type != CEPH_MSG_DATA_BIO); in ceph_msg_data_bio_cursor_init()
834 BUG_ON(!bio); in ceph_msg_data_bio_cursor_init()
851 BUG_ON(data->type != CEPH_MSG_DATA_BIO); in ceph_msg_data_bio_next()
854 BUG_ON(!bio); in ceph_msg_data_bio_next()
859 BUG_ON(*page_offset >= PAGE_SIZE); in ceph_msg_data_bio_next()
864 BUG_ON(*length > cursor->resid); in ceph_msg_data_bio_next()
865 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_bio_next()
876 BUG_ON(cursor->data->type != CEPH_MSG_DATA_BIO); in ceph_msg_data_bio_advance()
879 BUG_ON(!bio); in ceph_msg_data_bio_advance()
885 BUG_ON(cursor->resid < bytes); in ceph_msg_data_bio_advance()
906 BUG_ON(!cursor->resid); in ceph_msg_data_bio_advance()
907 BUG_ON(!bio); in ceph_msg_data_bio_advance()
927 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_cursor_init()
929 BUG_ON(!data->pages); in ceph_msg_data_pages_cursor_init()
930 BUG_ON(!data->length); in ceph_msg_data_pages_cursor_init()
936 BUG_ON(page_count > (int)USHRT_MAX); in ceph_msg_data_pages_cursor_init()
938 BUG_ON(length > SIZE_MAX - cursor->page_offset); in ceph_msg_data_pages_cursor_init()
948 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_next()
950 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_next()
951 BUG_ON(cursor->page_offset >= PAGE_SIZE); in ceph_msg_data_pages_next()
965 BUG_ON(cursor->data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_advance()
967 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE); in ceph_msg_data_pages_advance()
981 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_advance()
1000 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_cursor_init()
1003 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
1008 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
1024 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_next()
1027 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
1029 BUG_ON(!cursor->page); in ceph_msg_data_pagelist_next()
1030 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
1048 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_advance()
1051 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
1053 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
1054 BUG_ON((cursor->offset & ~PAGE_MASK) + bytes > PAGE_SIZE); in ceph_msg_data_pagelist_advance()
1069 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head)); in ceph_msg_data_pagelist_advance()
1113 BUG_ON(!length); in ceph_msg_data_cursor_init()
1114 BUG_ON(length > msg->data_length); in ceph_msg_data_cursor_init()
1115 BUG_ON(list_empty(&msg->data)); in ceph_msg_data_cursor_init()
1153 BUG_ON(!page); in ceph_msg_data_next()
1154 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_next()
1155 BUG_ON(!*length); in ceph_msg_data_next()
1171 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1193 BUG_ON(list_is_last(&cursor->data->links, cursor->data_head)); in ceph_msg_data_advance()
1212 BUG_ON(!msg); in prepare_message_data()
1213 BUG_ON(!data_len); in prepare_message_data()
1271 BUG_ON(list_empty(&con->out_queue)); in prepare_write_message()
1274 BUG_ON(m->con != con); in prepare_write_message()
1294 BUG_ON(le32_to_cpu(m->hdr.front_len) != m->front.iov_len); in prepare_write_message()
1515 BUG_ON(!con->out_kvec_left); in write_partial_kvec()
1541 BUG_ON(kaddr == NULL); in ceph_crc32c_page()
1679 BUG_ON(con->in_msg != NULL); in prepare_read_message()
2243 BUG_ON(!section); in read_partial_message_section()
2246 BUG_ON(section->iov_base == NULL); in read_partial_message_section()
2271 BUG_ON(!msg); in read_partial_msg_data()
2368 BUG_ON(!con->in_msg ^ skip); in read_partial_message()
2379 BUG_ON(!con->in_msg); in read_partial_message()
2380 BUG_ON(con->in_msg->con != con); in read_partial_message()
2471 BUG_ON(con->in_msg->con != con); in process_message()
2521 BUG_ON(con->sock); in try_write()
2528 BUG_ON(con->in_msg); in try_write()
2614 BUG_ON(!con->sock); in try_read()
2829 BUG_ON(ret == -ENOENT); in con_backoff()
2880 BUG_ON(con->sock); in ceph_con_workfn()
2885 BUG_ON(con->sock); in ceph_con_workfn()
2945 BUG_ON(con->in_msg->con != con); in con_fault()
3009 BUG_ON(msg->con != con); in msg_con_set()
3031 BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len)); in ceph_con_send()
3045 BUG_ON(!list_empty(&msg->list_head)); in ceph_con_send()
3085 BUG_ON(con->out_skip); in ceph_msg_revoke()
3090 BUG_ON(!msg->data_length); in ceph_msg_revoke()
3210 BUG_ON(!pages); in ceph_msg_data_add_pages()
3211 BUG_ON(!length); in ceph_msg_data_add_pages()
3214 BUG_ON(!data); in ceph_msg_data_add_pages()
3229 BUG_ON(!pagelist); in ceph_msg_data_add_pagelist()
3230 BUG_ON(!pagelist->length); in ceph_msg_data_add_pagelist()
3233 BUG_ON(!data); in ceph_msg_data_add_pagelist()
3247 BUG_ON(!bio); in ceph_msg_data_add_bio()
3250 BUG_ON(!data); in ceph_msg_data_add_bio()
3326 BUG_ON(!middle_len); in ceph_alloc_middle()
3327 BUG_ON(msg->middle); in ceph_alloc_middle()
3357 BUG_ON(con->in_msg != NULL); in ceph_con_in_msg_alloc()
3358 BUG_ON(!con->ops->alloc_msg); in ceph_con_in_msg_alloc()
3369 BUG_ON(*skip); in ceph_con_in_msg_alloc()