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()
437 struct drbd_bitmap *b = device->bitmap; in drbd_bm_init()
446 device->bitmap = b; in drbd_bm_init()
453 if (!expect(device->bitmap)) in drbd_bm_capacity()
455 return device->bitmap->bm_dev_capacity; in drbd_bm_capacity()
462 if (!expect(device->bitmap)) in drbd_bm_cleanup()
464 bm_free_pages(device->bitmap->bm_pages, device->bitmap->bm_number_of_pages); in drbd_bm_cleanup()
465 bm_vk_free(device->bitmap->bm_pages); in drbd_bm_cleanup()
466 kfree(device->bitmap); in drbd_bm_cleanup()
467 device->bitmap = NULL; in drbd_bm_cleanup()
634 struct drbd_bitmap *b = device->bitmap; in drbd_bm_resize()
758 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_total_weight()
787 struct drbd_bitmap *b = device->bitmap; in drbd_bm_words()
798 struct drbd_bitmap *b = device->bitmap; in drbd_bm_bits()
813 struct drbd_bitmap *b = device->bitmap; in drbd_bm_merge_lel()
862 struct drbd_bitmap *b = device->bitmap; in drbd_bm_get_lel()
898 struct drbd_bitmap *b = device->bitmap; in drbd_bm_set_all()
914 struct drbd_bitmap *b = device->bitmap; in drbd_bm_clear_all()
943 struct drbd_bitmap *b = device->bitmap; in drbd_bm_endio()
983 struct drbd_bitmap *b = device->bitmap; in bm_page_io_async()
1036 struct drbd_bitmap *b = device->bitmap; in bm_rw()
1260 struct drbd_bitmap *b = device->bitmap; in __bm_find_next()
1300 struct drbd_bitmap *b = device->bitmap; in bm_find_next()
1354 struct drbd_bitmap *b = device->bitmap; in __bm_change_bits_to()
1404 struct drbd_bitmap *b = device->bitmap; in bm_change_bits_to()
1476 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_set_bits()
1511 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1527 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()
1549 struct drbd_bitmap *b = device->bitmap; in drbd_bm_test_bit()
1580 struct drbd_bitmap *b = device->bitmap; in drbd_bm_count_bits()
1634 struct drbd_bitmap *b = device->bitmap; in drbd_bm_e_weight()