Lines Matching refs:bitmap
127 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info()
138 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
165 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
171 if (!(BM_LOCKED_MASK & device->bitmap->bm_flags)) in drbd_bm_unlock()
225 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io()
232 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io()
235 wake_up(&device->bitmap->bm_io_wait); in bm_page_unlock_io()
254 device->bitmap->n_bitmap_hints = 0; in drbd_bm_reset_al_hints()
268 struct drbd_bitmap *b = device->bitmap; in drbd_bm_mark_for_writeout()
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()
275 page = device->bitmap->bm_pages[page_nr]; in drbd_bm_mark_for_writeout()
449 struct drbd_bitmap *b = device->bitmap; in drbd_bm_init()
458 device->bitmap = b; in drbd_bm_init()
465 if (!expect(device->bitmap)) in drbd_bm_capacity()
467 return device->bitmap->bm_dev_capacity; in drbd_bm_capacity()
474 if (!expect(device->bitmap)) in drbd_bm_cleanup()
476 bm_free_pages(device->bitmap->bm_pages, device->bitmap->bm_number_of_pages); in drbd_bm_cleanup()
477 bm_vk_free(device->bitmap->bm_pages); in drbd_bm_cleanup()
478 kfree(device->bitmap); in drbd_bm_cleanup()
479 device->bitmap = NULL; in drbd_bm_cleanup()
646 struct drbd_bitmap *b = device->bitmap; in drbd_bm_resize()
770 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_total_weight()
799 struct drbd_bitmap *b = device->bitmap; in drbd_bm_words()
810 struct drbd_bitmap *b = device->bitmap; in drbd_bm_bits()
825 struct drbd_bitmap *b = device->bitmap; in drbd_bm_merge_lel()
874 struct drbd_bitmap *b = device->bitmap; in drbd_bm_get_lel()
910 struct drbd_bitmap *b = device->bitmap; in drbd_bm_set_all()
926 struct drbd_bitmap *b = device->bitmap; in drbd_bm_clear_all()
955 struct drbd_bitmap *b = device->bitmap; in drbd_bm_endio()
995 struct drbd_bitmap *b = device->bitmap; in bm_page_io_async()
1048 struct drbd_bitmap *b = device->bitmap; in bm_rw()
1272 struct drbd_bitmap *b = device->bitmap; in __bm_find_next()
1312 struct drbd_bitmap *b = device->bitmap; in bm_find_next()
1366 struct drbd_bitmap *b = device->bitmap; in __bm_change_bits_to()
1416 struct drbd_bitmap *b = device->bitmap; in bm_change_bits_to()
1488 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_set_bits()
1523 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1539 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()
1561 struct drbd_bitmap *b = device->bitmap; in drbd_bm_test_bit()
1592 struct drbd_bitmap *b = device->bitmap; in drbd_bm_count_bits()
1646 struct drbd_bitmap *b = device->bitmap; in drbd_bm_e_weight()