Lines Matching refs:bitmap

120 	struct drbd_bitmap *b = device->bitmap;  in __bm_print_lock_info()
131 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
158 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
164 if (!(BM_LOCKED_MASK & device->bitmap->bm_flags)) in drbd_bm_unlock()
218 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io()
225 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io()
228 wake_up(&device->bitmap->bm_io_wait); in bm_page_unlock_io()
257 if (page_nr >= device->bitmap->bm_number_of_pages) { in drbd_bm_mark_for_writeout()
259 page_nr, (int)device->bitmap->bm_number_of_pages); in drbd_bm_mark_for_writeout()
262 page = device->bitmap->bm_pages[page_nr]; in drbd_bm_mark_for_writeout()
444 struct drbd_bitmap *b = device->bitmap; in drbd_bm_init()
453 device->bitmap = b; in drbd_bm_init()
460 if (!expect(device->bitmap)) in drbd_bm_capacity()
462 return device->bitmap->bm_dev_capacity; in drbd_bm_capacity()
469 if (!expect(device->bitmap)) in drbd_bm_cleanup()
471 bm_free_pages(device->bitmap->bm_pages, device->bitmap->bm_number_of_pages); in drbd_bm_cleanup()
472 bm_vk_free(device->bitmap->bm_pages, (BM_P_VMALLOCED & device->bitmap->bm_flags)); in drbd_bm_cleanup()
473 kfree(device->bitmap); in drbd_bm_cleanup()
474 device->bitmap = NULL; in drbd_bm_cleanup()
637 struct drbd_bitmap *b = device->bitmap; in drbd_bm_resize()
763 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_total_weight()
792 struct drbd_bitmap *b = device->bitmap; in drbd_bm_words()
803 struct drbd_bitmap *b = device->bitmap; in drbd_bm_bits()
818 struct drbd_bitmap *b = device->bitmap; in drbd_bm_merge_lel()
867 struct drbd_bitmap *b = device->bitmap; in drbd_bm_get_lel()
903 struct drbd_bitmap *b = device->bitmap; in drbd_bm_set_all()
919 struct drbd_bitmap *b = device->bitmap; in drbd_bm_clear_all()
948 struct drbd_bitmap *b = device->bitmap; in drbd_bm_endio()
997 struct drbd_bitmap *b = device->bitmap; in bm_page_io_async()
1049 struct drbd_bitmap *b = device->bitmap; in bm_rw()
1248 struct drbd_bitmap *b = device->bitmap; in __bm_find_next()
1288 struct drbd_bitmap *b = device->bitmap; in bm_find_next()
1342 struct drbd_bitmap *b = device->bitmap; in __bm_change_bits_to()
1392 struct drbd_bitmap *b = device->bitmap; in bm_change_bits_to()
1461 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_set_bits()
1496 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1512 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()
1534 struct drbd_bitmap *b = device->bitmap; in drbd_bm_test_bit()
1565 struct drbd_bitmap *b = device->bitmap; in drbd_bm_count_bits()
1619 struct drbd_bitmap *b = device->bitmap; in drbd_bm_e_weight()