Lines Matching refs:chunksize
473 sb->chunksize = cpu_to_le32(bitmap->mddev->bitmap_info.chunksize); in md_bitmap_update_sb()
503 pr_debug(" chunksize: %d B\n", le32_to_cpu(sb->chunksize)); in md_bitmap_print_sb()
525 unsigned long chunksize, daemon_sleep, write_behind; in md_bitmap_new_disk_sb() local
537 chunksize = bitmap->mddev->bitmap_info.chunksize; in md_bitmap_new_disk_sb()
538 BUG_ON(!chunksize); in md_bitmap_new_disk_sb()
539 if (!is_power_of_2(chunksize)) { in md_bitmap_new_disk_sb()
544 sb->chunksize = cpu_to_le32(chunksize); in md_bitmap_new_disk_sb()
585 unsigned long chunksize, daemon_sleep, write_behind; in md_bitmap_read_sb() local
594 chunksize = 128 * 1024 * 1024; in md_bitmap_read_sb()
613 bitmap->mddev->bitmap_info.chunksize >> 9); in md_bitmap_read_sb()
641 chunksize = le32_to_cpu(sb->chunksize); in md_bitmap_read_sb()
660 else if (chunksize < 512) in md_bitmap_read_sb()
662 else if (!is_power_of_2(chunksize)) in md_bitmap_read_sb()
707 bitmap->mddev->bitmap_info.chunksize = chunksize; in md_bitmap_read_sb()
723 bitmap->mddev->bitmap_info.chunksize = chunksize; in md_bitmap_read_sb()
1872 if (mddev->bitmap_info.chunksize == 0 || in md_bitmap_create()
1882 err = md_bitmap_resize(bitmap, blocks, mddev->bitmap_info.chunksize, 1); in md_bitmap_create()
2036 chunk_kb = bitmap->mddev->bitmap_info.chunksize >> 10; in md_bitmap_status()
2043 chunk_kb ? chunk_kb : bitmap->mddev->bitmap_info.chunksize, in md_bitmap_status()
2054 int chunksize, int init) in md_bitmap_resize() argument
2081 if (chunksize == 0) { in md_bitmap_resize()
2109 chunkshift = ffz(~chunksize) - BITMAP_BLOCK_SHIFT; in md_bitmap_resize()
2152 bitmap->mddev->bitmap_info.chunksize = 1 << (chunkshift + in md_bitmap_resize()
2178 bitmap->mddev->bitmap_info.chunksize = 1 << (old_counts.chunkshift + in md_bitmap_resize()
2500 return sprintf(page, "%lu\n", mddev->bitmap_info.chunksize); in chunksize_show()
2517 mddev->bitmap_info.chunksize = csize; in chunksize_store()
2522 __ATTR(chunksize, S_IRUGO|S_IWUSR, chunksize_show, chunksize_store);