Lines Matching refs:chunksize
470 sb->chunksize = cpu_to_le32(bitmap->mddev->bitmap_info.chunksize); in md_bitmap_update_sb()
500 pr_debug(" chunksize: %u B\n", le32_to_cpu(sb->chunksize)); in md_bitmap_print_sb()
522 unsigned long chunksize, daemon_sleep, write_behind; in md_bitmap_new_disk_sb() local
534 chunksize = bitmap->mddev->bitmap_info.chunksize; in md_bitmap_new_disk_sb()
535 BUG_ON(!chunksize); in md_bitmap_new_disk_sb()
536 if (!is_power_of_2(chunksize)) { in md_bitmap_new_disk_sb()
541 sb->chunksize = cpu_to_le32(chunksize); in md_bitmap_new_disk_sb()
582 unsigned long chunksize, daemon_sleep, write_behind; in md_bitmap_read_sb() local
591 chunksize = 128 * 1024 * 1024; in md_bitmap_read_sb()
610 (bitmap->mddev->bitmap_info.chunksize >> 9)); in md_bitmap_read_sb()
638 chunksize = le32_to_cpu(sb->chunksize); in md_bitmap_read_sb()
649 else if (chunksize < 512) in md_bitmap_read_sb()
651 else if (!is_power_of_2(chunksize)) in md_bitmap_read_sb()
706 bitmap->mddev->bitmap_info.chunksize = chunksize; in md_bitmap_read_sb()
721 bitmap->mddev->bitmap_info.chunksize = chunksize; in md_bitmap_read_sb()
1871 if (mddev->bitmap_info.chunksize == 0 || in md_bitmap_create()
1881 err = md_bitmap_resize(bitmap, blocks, mddev->bitmap_info.chunksize, 1); in md_bitmap_create()
2037 chunk_kb = bitmap->mddev->bitmap_info.chunksize >> 10; in md_bitmap_status()
2044 chunk_kb ? chunk_kb : bitmap->mddev->bitmap_info.chunksize, in md_bitmap_status()
2055 int chunksize, int init) in md_bitmap_resize() argument
2082 if (chunksize == 0) { in md_bitmap_resize()
2109 (BITS_PER_BYTE * sizeof(((bitmap_super_t *)0)->chunksize) - 1)); in md_bitmap_resize()
2111 chunkshift = ffz(~chunksize) - BITMAP_BLOCK_SHIFT; in md_bitmap_resize()
2154 bitmap->mddev->bitmap_info.chunksize = 1UL << (chunkshift + in md_bitmap_resize()
2180 bitmap->mddev->bitmap_info.chunksize = in md_bitmap_resize()
2524 return sprintf(page, "%lu\n", mddev->bitmap_info.chunksize); in chunksize_show()
2542 sizeof(((bitmap_super_t *)0)->chunksize)))) in chunksize_store()
2544 mddev->bitmap_info.chunksize = csize; in chunksize_store()
2549 __ATTR(chunksize, S_IRUGO|S_IWUSR, chunksize_show, chunksize_store);