Lines Matching refs:bm_pages

84 	struct page **bm_pages;  member
214 void *addr = &page_private(b->bm_pages[page_nr]); in bm_page_lock_io()
221 void *addr = &page_private(b->bm_pages[page_nr]); in bm_page_unlock_io()
263 page = device->bitmap->bm_pages[page_nr]; in drbd_bm_mark_for_writeout()
314 struct page *page = b->bm_pages[idx]; in __bm_map_pidx()
380 struct page **old_pages = b->bm_pages; in bm_realloc_pages()
464 bm_free_pages(device->bitmap->bm_pages, device->bitmap->bm_number_of_pages); in drbd_bm_cleanup()
465 bm_vk_free(device->bitmap->bm_pages); in drbd_bm_cleanup()
608 bm_set_page_need_writeout(b->bm_pages[idx]); in bm_memset()
654 opages = b->bm_pages; in drbd_bm_resize()
657 b->bm_pages = NULL; in drbd_bm_resize()
691 D_ASSERT(device, b->bm_pages != NULL); in drbd_bm_resize()
692 npages = b->bm_pages; in drbd_bm_resize()
706 opages = b->bm_pages; in drbd_bm_resize()
714 b->bm_pages = npages; in drbd_bm_resize()
764 if (!expect(b->bm_pages)) in _drbd_bm_total_weight()
790 if (!expect(b->bm_pages)) in drbd_bm_words()
823 if (!expect(b->bm_pages)) in drbd_bm_merge_lel()
844 bm_set_page_need_writeout(b->bm_pages[idx]); in drbd_bm_merge_lel()
870 if (!expect(b->bm_pages)) in drbd_bm_get_lel()
901 if (!expect(b->bm_pages)) in drbd_bm_set_all()
917 if (!expect(b->bm_pages)) in drbd_bm_clear_all()
947 !bm_test_page_unchanged(b->bm_pages[idx])) in drbd_bm_endio()
954 bm_set_page_io_err(b->bm_pages[idx]); in drbd_bm_endio()
961 bm_clear_page_io_err(b->bm_pages[idx]); in drbd_bm_endio()
1002 bm_set_page_unchanged(b->bm_pages[page_nr]); in bm_page_io_async()
1007 copy_highpage(page, b->bm_pages[page_nr]); in bm_page_io_async()
1010 page = b->bm_pages[page_nr]; in bm_page_io_async()
1102 &page_private(b->bm_pages[i]))) in bm_rw()
1105 if (bm_test_page_unchanged(b->bm_pages[i])) in bm_rw()
1117 bm_test_page_unchanged(b->bm_pages[i])) { in bm_rw()
1124 !bm_test_page_lazy_writeout(b->bm_pages[i])) { in bm_rw()
1305 if (!expect(b->bm_pages)) in bm_find_next()
1372 bm_set_page_lazy_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1374 bm_set_page_need_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1388 bm_set_page_lazy_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1390 bm_set_page_need_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1409 if (!expect(b->bm_pages)) in bm_change_bits_to()
1442 unsigned long *paddr = kmap_atomic(b->bm_pages[page_nr]); in bm_set_full_words_within_one_page()
1456 bm_set_page_lazy_writeout(b->bm_pages[page_nr]); in bm_set_full_words_within_one_page()
1555 if (!expect(b->bm_pages)) in drbd_bm_test_bit()
1592 if (!expect(b->bm_pages)) in drbd_bm_count_bits()
1641 if (!expect(b->bm_pages)) in drbd_bm_e_weight()