Lines Matching refs:chunkshift

159 		unsigned long chunkshift;  member
1149 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_set_bit()
1180 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_clear_bit()
1210 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_test_bit()
1334 int needed = ((sector_t)(i+1) << (bitmap->counts.chunkshift) in md_bitmap_init_from_disk()
1337 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk()
1417 int needed = ((sector_t)(i+1) << bitmap->counts.chunkshift in md_bitmap_init_from_disk()
1420 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk()
1459 sector_t chunk = offset >> bitmap->chunkshift; in md_bitmap_count_page()
1467 sector_t chunk = offset >> bitmap->chunkshift; in md_bitmap_set_pending()
1564 sector_t block = (sector_t)j << counts->chunkshift; in bitmap_daemon_work()
1632 sector_t chunk = offset >> bitmap->chunkshift; in md_bitmap_get_counter()
1635 sector_t csize = ((sector_t)1) << bitmap->chunkshift; in md_bitmap_get_counter()
1651 csize = ((sector_t)1) << (bitmap->chunkshift + in md_bitmap_get_counter()
1925 sector &= ~((1ULL << bitmap->counts.chunkshift) - 1); in bitmap_cond_end_sync()
1992 sector_t sec = (sector_t)chunk << bitmap->counts.chunkshift; in bitmap_dirty_bits()
2300 block = (sector_t)j << counts->chunkshift; in bitmap_copy_from_slot()
2381 int chunkshift; in __bitmap_resize() local
2408 chunkshift = bitmap->counts.chunkshift; in __bitmap_resize()
2409 chunkshift--; in __bitmap_resize()
2412 chunkshift++; in __bitmap_resize()
2413 chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift); in __bitmap_resize()
2417 } while (bytes > (space << 9) && (chunkshift + BITMAP_BLOCK_SHIFT) < in __bitmap_resize()
2420 chunkshift = ffz(~chunksize) - BITMAP_BLOCK_SHIFT; in __bitmap_resize()
2422 chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift); in __bitmap_resize()
2461 bitmap->counts.chunkshift = chunkshift; in __bitmap_resize()
2463 bitmap->mddev->bitmap_info.chunksize = 1UL << (chunkshift + in __bitmap_resize()
2466 blocks = min(old_counts.chunks << old_counts.chunkshift, in __bitmap_resize()
2467 chunks << chunkshift); in __bitmap_resize()
2487 bitmap->counts.chunkshift = old_counts.chunkshift; in __bitmap_resize()
2490 1UL << (old_counts.chunkshift + BITMAP_BLOCK_SHIFT); in __bitmap_resize()
2491 blocks = old_counts.chunks << old_counts.chunkshift; in __bitmap_resize()
2512 sector_t start = block >> chunkshift; in __bitmap_resize()
2514 start <<= chunkshift; in __bitmap_resize()
2517 start += 1 << chunkshift; in __bitmap_resize()
2541 while (block < (chunks << chunkshift)) { in __bitmap_resize()