Lines Matching refs:BUG_ON

102 	BUG_ON(!con_flag_valid(con_flag));  in ceph_con_flag_clear()
109 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_set()
116 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test()
124 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_clear()
132 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_set()
213 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init()
223 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit()
235 BUG_ON(!ceph_zero_page); in _ceph_msgr_exit()
247 BUG_ON(ceph_zero_page); in ceph_msgr_init()
267 BUG_ON(ceph_msgr_wq == NULL); in ceph_msgr_exit()
443 BUG_ON(con->sock); in ceph_tcp_connect()
735 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
756 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bio_advance()
757 BUG_ON(bytes > bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
775 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
790 BUG_ON(cursor->resid < bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_cursor_init()
811 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bvecs_advance()
812 BUG_ON(bytes > bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_advance()
823 BUG_ON(cursor->resid < bvec_iter_len(bvecs, cursor->bvec_iter)); in ceph_msg_data_bvecs_advance()
837 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_cursor_init()
839 BUG_ON(!data->pages); in ceph_msg_data_pages_cursor_init()
840 BUG_ON(!data->length); in ceph_msg_data_pages_cursor_init()
846 BUG_ON(page_count > (int)USHRT_MAX); in ceph_msg_data_pages_cursor_init()
848 BUG_ON(length > SIZE_MAX - cursor->page_offset); in ceph_msg_data_pages_cursor_init()
857 BUG_ON(data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_next()
859 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_next()
860 BUG_ON(cursor->page_offset >= PAGE_SIZE); in ceph_msg_data_pages_next()
870 BUG_ON(cursor->data->type != CEPH_MSG_DATA_PAGES); in ceph_msg_data_pages_advance()
872 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE); in ceph_msg_data_pages_advance()
886 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_advance()
903 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_cursor_init()
906 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
911 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
926 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_next()
929 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
931 BUG_ON(!cursor->page); in ceph_msg_data_pagelist_next()
932 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
946 BUG_ON(data->type != CEPH_MSG_DATA_PAGELIST); in ceph_msg_data_pagelist_advance()
949 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
951 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
952 BUG_ON((cursor->offset & ~PAGE_MASK) + bytes > PAGE_SIZE); in ceph_msg_data_pagelist_advance()
967 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head)); in ceph_msg_data_pagelist_advance()
1010 BUG_ON(!length); in ceph_msg_data_cursor_init()
1011 BUG_ON(length > msg->data_length); in ceph_msg_data_cursor_init()
1012 BUG_ON(!msg->num_data_items); in ceph_msg_data_cursor_init()
1051 BUG_ON(!page); in ceph_msg_data_next()
1052 BUG_ON(*page_offset + *length > PAGE_SIZE); in ceph_msg_data_next()
1053 BUG_ON(!*length); in ceph_msg_data_next()
1054 BUG_ON(*length > cursor->resid); in ceph_msg_data_next()
1067 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1104 BUG_ON(kaddr == NULL); in ceph_crc32c_page()
1338 BUG_ON(con->in_msg->con != con); in ceph_con_process_message()
1443 BUG_ON(ret == -ENOENT); in con_backoff()
1498 BUG_ON(con->sock); in ceph_con_workfn()
1503 BUG_ON(con->sock); in ceph_con_workfn()
1643 BUG_ON(msg->con != con); in msg_con_set()
1667 BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len)); in ceph_con_send()
1681 BUG_ON(!list_empty(&msg->list_head)); in ceph_con_send()
1802 BUG_ON(msg->num_data_items >= msg->max_data_items); in ceph_msg_data_add()
1821 BUG_ON(!pages); in ceph_msg_data_add_pages()
1822 BUG_ON(!length); in ceph_msg_data_add_pages()
1840 BUG_ON(!pagelist); in ceph_msg_data_add_pagelist()
1841 BUG_ON(!pagelist->length); in ceph_msg_data_add_pagelist()
1962 BUG_ON(!middle_len); in ceph_alloc_middle()
1963 BUG_ON(msg->middle); in ceph_alloc_middle()
1993 BUG_ON(con->in_msg != NULL); in ceph_con_in_msg_alloc()
1994 BUG_ON(!con->ops->alloc_msg); in ceph_con_in_msg_alloc()
2005 BUG_ON(*skip); in ceph_con_in_msg_alloc()
2037 BUG_ON(list_empty(&con->out_queue)); in ceph_con_get_out_msg()