Lines Matching refs:BUG_ON

101 	BUG_ON(!con_flag_valid(con_flag));  in ceph_con_flag_clear()
108 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_set()
115 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test()
123 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_clear()
131 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_set()
212 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init()
222 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit()
234 BUG_ON(!ceph_zero_page); in _ceph_msgr_exit()
246 BUG_ON(ceph_zero_page); in ceph_msgr_init()
266 BUG_ON(ceph_msgr_wq == NULL); in ceph_msgr_exit()
439 BUG_ON(con->sock); in ceph_tcp_connect()
726 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
748 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bio_advance()
749 BUG_ON(bytes > bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
754 BUG_ON(!cursor->last_piece); in ceph_msg_data_bio_advance()
769 BUG_ON(cursor->last_piece); in ceph_msg_data_bio_advance()
770 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
786 BUG_ON(cursor->resid < bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_cursor_init()
809 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bvecs_advance()
810 BUG_ON(bytes > bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_advance()
815 BUG_ON(!cursor->last_piece); in ceph_msg_data_bvecs_advance()
823 BUG_ON(cursor->last_piece); in ceph_msg_data_bvecs_advance()
824 BUG_ON(cursor->resid < bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_advance()
840 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_cursor_init()
842 BUG_ON(!data->pages); in ceph_msg_data_pages_cursor_init()
843 BUG_ON(!data->length); in ceph_msg_data_pages_cursor_init()
849 BUG_ON(page_count > (int)USHRT_MAX); in ceph_msg_data_pages_cursor_init()
851 BUG_ON(length > SIZE_MAX - cursor->page_offset); in ceph_msg_data_pages_cursor_init()
861 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_next()
863 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_next()
864 BUG_ON(cursor->page_offset >= PAGE_SIZE); in ceph_msg_data_pages_next()
878 BUG_ON(cursor->data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_advance()
880 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE); in ceph_msg_data_pages_advance()
894 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_advance()
913 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_cursor_init()
916 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
921 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
937 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_next()
940 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
942 BUG_ON(!cursor->page); in ceph_msg_data_pagelist_next()
943 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
961 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_advance()
964 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
966 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
967 BUG_ON((cursor->offset & ~PAGE_MASK) + bytes > PAGE_SIZE); in ceph_msg_data_pagelist_advance()
982 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head)); in ceph_msg_data_pagelist_advance()
1027 BUG_ON(!length); in ceph_msg_data_cursor_init()
1028 BUG_ON(length > msg->data_length); in ceph_msg_data_cursor_init()
1029 BUG_ON(!msg->num_data_items); in ceph_msg_data_cursor_init()
1069 BUG_ON(!page); in ceph_msg_data_next()
1070 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_next()
1071 BUG_ON(!*length); in ceph_msg_data_next()
1072 BUG_ON(*length > cursor->resid); in ceph_msg_data_next()
1087 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1125 BUG_ON(kaddr == NULL); in ceph_crc32c_page()
1358 BUG_ON(con->in_msg->con != con); in ceph_con_process_message()
1463 BUG_ON(ret == -ENOENT); in con_backoff()
1518 BUG_ON(con->sock); in ceph_con_workfn()
1523 BUG_ON(con->sock); in ceph_con_workfn()
1663 BUG_ON(msg->con != con); in msg_con_set()
1687 BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len)); in ceph_con_send()
1701 BUG_ON(!list_empty(&msg->list_head)); in ceph_con_send()
1822 BUG_ON(msg->num_data_items >= msg->max_data_items); in ceph_msg_data_add()
1841 BUG_ON(!pages); in ceph_msg_data_add_pages()
1842 BUG_ON(!length); in ceph_msg_data_add_pages()
1860 BUG_ON(!pagelist); in ceph_msg_data_add_pagelist()
1861 BUG_ON(!pagelist->length); in ceph_msg_data_add_pagelist()
1982 BUG_ON(!middle_len); in ceph_alloc_middle()
1983 BUG_ON(msg->middle); in ceph_alloc_middle()
2013 BUG_ON(con->in_msg != NULL); in ceph_con_in_msg_alloc()
2014 BUG_ON(!con->ops->alloc_msg); in ceph_con_in_msg_alloc()
2025 BUG_ON(*skip); in ceph_con_in_msg_alloc()
2057 BUG_ON(list_empty(&con->out_queue)); in ceph_con_get_out_msg()