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()
462 bm_free_pages(device->bitmap->bm_pages, device->bitmap->bm_number_of_pages); in drbd_bm_cleanup()
463 bm_vk_free(device->bitmap->bm_pages); in drbd_bm_cleanup()
606 bm_set_page_need_writeout(b->bm_pages[idx]); in bm_memset()
652 opages = b->bm_pages; in drbd_bm_resize()
655 b->bm_pages = NULL; in drbd_bm_resize()
689 D_ASSERT(device, b->bm_pages != NULL); in drbd_bm_resize()
690 npages = b->bm_pages; in drbd_bm_resize()
704 opages = b->bm_pages; in drbd_bm_resize()
712 b->bm_pages = npages; in drbd_bm_resize()
762 if (!expect(b->bm_pages)) in _drbd_bm_total_weight()
788 if (!expect(b->bm_pages)) in drbd_bm_words()
821 if (!expect(b->bm_pages)) in drbd_bm_merge_lel()
842 bm_set_page_need_writeout(b->bm_pages[idx]); in drbd_bm_merge_lel()
868 if (!expect(b->bm_pages)) in drbd_bm_get_lel()
899 if (!expect(b->bm_pages)) in drbd_bm_set_all()
915 if (!expect(b->bm_pages)) in drbd_bm_clear_all()
945 !bm_test_page_unchanged(b->bm_pages[idx])) in drbd_bm_endio()
952 bm_set_page_io_err(b->bm_pages[idx]); in drbd_bm_endio()
959 bm_clear_page_io_err(b->bm_pages[idx]); in drbd_bm_endio()
1021 bm_set_page_io_err(b->bm_pages[page_nr]); in bm_page_io_async()
1034 bm_set_page_unchanged(b->bm_pages[page_nr]); in bm_page_io_async()
1039 copy_highpage(page, b->bm_pages[page_nr]); in bm_page_io_async()
1042 page = b->bm_pages[page_nr]; in bm_page_io_async()
1134 &page_private(b->bm_pages[i]))) in bm_rw()
1137 if (bm_test_page_unchanged(b->bm_pages[i])) in bm_rw()
1149 bm_test_page_unchanged(b->bm_pages[i])) { in bm_rw()
1156 !bm_test_page_lazy_writeout(b->bm_pages[i])) { in bm_rw()
1337 if (!expect(b->bm_pages)) in bm_find_next()
1404 bm_set_page_lazy_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1406 bm_set_page_need_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1420 bm_set_page_lazy_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1422 bm_set_page_need_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1441 if (!expect(b->bm_pages)) in bm_change_bits_to()
1474 unsigned long *paddr = kmap_atomic(b->bm_pages[page_nr]); in bm_set_full_words_within_one_page()
1488 bm_set_page_lazy_writeout(b->bm_pages[page_nr]); in bm_set_full_words_within_one_page()
1587 if (!expect(b->bm_pages)) in drbd_bm_test_bit()
1624 if (!expect(b->bm_pages)) in drbd_bm_count_bits()
1673 if (!expect(b->bm_pages)) in drbd_bm_e_weight()