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(device, b->bm_pages)) in _drbd_bm_total_weight()
788 if (!expect(device, b->bm_pages)) in drbd_bm_words()
821 if (!expect(device, 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(device, b->bm_pages)) in drbd_bm_get_lel()
899 if (!expect(device, b->bm_pages)) in drbd_bm_set_all()
915 if (!expect(device, 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()
1132 &page_private(b->bm_pages[i]))) in bm_rw()
1135 if (bm_test_page_unchanged(b->bm_pages[i])) in bm_rw()
1147 bm_test_page_unchanged(b->bm_pages[i])) { in bm_rw()
1154 !bm_test_page_lazy_writeout(b->bm_pages[i])) { in bm_rw()
1340 if (!expect(device, b->bm_pages)) in bm_find_next()
1407 bm_set_page_lazy_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1409 bm_set_page_need_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1423 bm_set_page_lazy_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1425 bm_set_page_need_writeout(b->bm_pages[last_page_nr]); in __bm_change_bits_to()
1444 if (!expect(device, b->bm_pages)) in bm_change_bits_to()
1477 unsigned long *paddr = kmap_atomic(b->bm_pages[page_nr]); in bm_set_full_words_within_one_page()
1491 bm_set_page_lazy_writeout(b->bm_pages[page_nr]); in bm_set_full_words_within_one_page()
1590 if (!expect(device, b->bm_pages)) in drbd_bm_test_bit()
1627 if (!expect(device, b->bm_pages)) in drbd_bm_count_bits()
1676 if (!expect(device, b->bm_pages)) in drbd_bm_e_weight()