Lines Matching refs:bm_number_of_pages
111 size_t bm_number_of_pages; member
270 if (page_nr >= device->bitmap->bm_number_of_pages) { in drbd_bm_mark_for_writeout()
272 page_nr, (int)device->bitmap->bm_number_of_pages); in drbd_bm_mark_for_writeout()
312 BUG_ON(page_nr >= b->bm_number_of_pages); in bm_word_to_page_idx()
320 BUG_ON(page_nr >= b->bm_number_of_pages); in bm_bit_to_page_idx()
395 unsigned long have = b->bm_number_of_pages; in bm_realloc_pages()
476 bm_free_pages(device->bitmap->bm_pages, device->bitmap->bm_number_of_pages); in drbd_bm_cleanup()
511 p_addr = bm_map_pidx(b, b->bm_number_of_pages - 1); in bm_clear_surplus()
547 p_addr = bm_map_pidx(b, b->bm_number_of_pages - 1); in bm_set_surplus()
576 for (idx = 0; idx < b->bm_number_of_pages - 1; idx++) { in bm_count_bits()
667 onpages = b->bm_number_of_pages; in drbd_bm_resize()
670 b->bm_number_of_pages = in drbd_bm_resize()
701 have = b->bm_number_of_pages; in drbd_bm_resize()
727 b->bm_number_of_pages = want; in drbd_bm_resize()
1092 num_pages = b->bm_number_of_pages; in bm_rw()