Lines Matching refs:bitmap

115 	struct drbd_bitmap *b = device->bitmap;  in __bm_print_lock_info()
126 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
153 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
159 if (!(BM_LOCKED_MASK & device->bitmap->bm_flags)) in drbd_bm_unlock()
213 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io()
220 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io()
223 wake_up(&device->bitmap->bm_io_wait); in bm_page_unlock_io()
242 device->bitmap->n_bitmap_hints = 0; in drbd_bm_reset_al_hints()
256 struct drbd_bitmap *b = device->bitmap; in drbd_bm_mark_for_writeout()
258 if (page_nr >= device->bitmap->bm_number_of_pages) { in drbd_bm_mark_for_writeout()
260 page_nr, (int)device->bitmap->bm_number_of_pages); in drbd_bm_mark_for_writeout()
263 page = device->bitmap->bm_pages[page_nr]; in drbd_bm_mark_for_writeout()
435 struct drbd_bitmap *b = device->bitmap; in drbd_bm_init()
444 device->bitmap = b; in drbd_bm_init()
451 if (!expect(device->bitmap)) in drbd_bm_capacity()
453 return device->bitmap->bm_dev_capacity; in drbd_bm_capacity()
460 if (!expect(device->bitmap)) in drbd_bm_cleanup()
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()
464 kfree(device->bitmap); in drbd_bm_cleanup()
465 device->bitmap = NULL; in drbd_bm_cleanup()
632 struct drbd_bitmap *b = device->bitmap; in drbd_bm_resize()
756 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_total_weight()
785 struct drbd_bitmap *b = device->bitmap; in drbd_bm_words()
796 struct drbd_bitmap *b = device->bitmap; in drbd_bm_bits()
811 struct drbd_bitmap *b = device->bitmap; in drbd_bm_merge_lel()
860 struct drbd_bitmap *b = device->bitmap; in drbd_bm_get_lel()
896 struct drbd_bitmap *b = device->bitmap; in drbd_bm_set_all()
912 struct drbd_bitmap *b = device->bitmap; in drbd_bm_clear_all()
941 struct drbd_bitmap *b = device->bitmap; in drbd_bm_endio()
994 struct drbd_bitmap *b = device->bitmap; in bm_page_io_async()
1068 struct drbd_bitmap *b = device->bitmap; in bm_rw()
1292 struct drbd_bitmap *b = device->bitmap; in __bm_find_next()
1332 struct drbd_bitmap *b = device->bitmap; in bm_find_next()
1386 struct drbd_bitmap *b = device->bitmap; in __bm_change_bits_to()
1436 struct drbd_bitmap *b = device->bitmap; in bm_change_bits_to()
1508 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_set_bits()
1543 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1559 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()
1581 struct drbd_bitmap *b = device->bitmap; in drbd_bm_test_bit()
1612 struct drbd_bitmap *b = device->bitmap; in drbd_bm_count_bits()
1666 struct drbd_bitmap *b = device->bitmap; in drbd_bm_e_weight()