Lines Matching refs:chunksize
501 sb->chunksize = cpu_to_le32(bitmap->mddev->bitmap_info.chunksize); in md_bitmap_update_sb()
536 pr_debug(" chunksize: %u B\n", le32_to_cpu(sb->chunksize)); in md_bitmap_print_sb()
558 unsigned long chunksize, daemon_sleep, write_behind; in md_bitmap_new_disk_sb() local
570 chunksize = bitmap->mddev->bitmap_info.chunksize; in md_bitmap_new_disk_sb()
571 BUG_ON(!chunksize); in md_bitmap_new_disk_sb()
572 if (!is_power_of_2(chunksize)) { in md_bitmap_new_disk_sb()
577 sb->chunksize = cpu_to_le32(chunksize); in md_bitmap_new_disk_sb()
618 unsigned long chunksize, daemon_sleep, write_behind; in md_bitmap_read_sb() local
627 chunksize = 128 * 1024 * 1024; in md_bitmap_read_sb()
646 (bitmap->mddev->bitmap_info.chunksize >> 9)); in md_bitmap_read_sb()
672 chunksize = le32_to_cpu(sb->chunksize); in md_bitmap_read_sb()
683 else if (chunksize < 512) in md_bitmap_read_sb()
685 else if (!is_power_of_2(chunksize)) in md_bitmap_read_sb()
740 bitmap->mddev->bitmap_info.chunksize = chunksize; in md_bitmap_read_sb()
755 bitmap->mddev->bitmap_info.chunksize = chunksize; in md_bitmap_read_sb()
1944 if (mddev->bitmap_info.chunksize == 0 || in md_bitmap_create()
1954 err = md_bitmap_resize(bitmap, blocks, mddev->bitmap_info.chunksize, 1); in md_bitmap_create()
2110 chunk_kb = bitmap->mddev->bitmap_info.chunksize >> 10; in md_bitmap_status()
2117 chunk_kb ? chunk_kb : bitmap->mddev->bitmap_info.chunksize, in md_bitmap_status()
2128 int chunksize, int init) in md_bitmap_resize() argument
2155 if (chunksize == 0) { in md_bitmap_resize()
2182 (BITS_PER_BYTE * sizeof(((bitmap_super_t *)0)->chunksize) - 1)); in md_bitmap_resize()
2184 chunkshift = ffz(~chunksize) - BITMAP_BLOCK_SHIFT; in md_bitmap_resize()
2227 bitmap->mddev->bitmap_info.chunksize = 1UL << (chunkshift + in md_bitmap_resize()
2253 bitmap->mddev->bitmap_info.chunksize = in md_bitmap_resize()
2596 return sprintf(page, "%lu\n", mddev->bitmap_info.chunksize); in chunksize_show()
2614 sizeof(((bitmap_super_t *)0)->chunksize)))) in chunksize_store()
2616 mddev->bitmap_info.chunksize = csize; in chunksize_store()
2621 __ATTR(chunksize, S_IRUGO|S_IWUSR, chunksize_show, chunksize_store);