Lines Matching refs:bitmap_info
199 return (rdev && rdev->mddev->bitmap_info.max_write_behind > 0 && in rdev_need_serial()
664 mutex_init(&mddev->bitmap_info.mutex); in mddev_init()
1153 if (!mddev->bitmap_info.file && !mddev->bitmap_info.offset) in md_check_no_bitmap()
1299 mddev->bitmap_info.offset = 0; in super_90_validate()
1300 mddev->bitmap_info.space = 0; in super_90_validate()
1302 mddev->bitmap_info.default_offset = MD_SB_BYTES >> 9; in super_90_validate()
1303 mddev->bitmap_info.default_space = 64*2 - (MD_SB_BYTES >> 9); in super_90_validate()
1342 mddev->bitmap_info.file == NULL) { in super_90_validate()
1343 mddev->bitmap_info.offset = in super_90_validate()
1344 mddev->bitmap_info.default_offset; in super_90_validate()
1345 mddev->bitmap_info.space = in super_90_validate()
1346 mddev->bitmap_info.default_space; in super_90_validate()
1471 if (mddev->bitmap && mddev->bitmap_info.file == NULL) in super_90_sync()
1551 if (rdev->mddev->bitmap_info.offset) in super_90_rdev_size_change()
1809 mddev->bitmap_info.offset = 0; in super_1_validate()
1810 mddev->bitmap_info.space = 0; in super_1_validate()
1814 mddev->bitmap_info.default_offset = 1024 >> 9; in super_1_validate()
1815 mddev->bitmap_info.default_space = (4096-1024) >> 9; in super_1_validate()
1824 mddev->bitmap_info.file == NULL) { in super_1_validate()
1825 mddev->bitmap_info.offset = in super_1_validate()
1833 mddev->bitmap_info.space = 0; in super_1_validate()
1834 else if (mddev->bitmap_info.offset > 0) in super_1_validate()
1835 mddev->bitmap_info.space = in super_1_validate()
1836 8 - mddev->bitmap_info.offset; in super_1_validate()
1838 mddev->bitmap_info.space = in super_1_validate()
1839 -mddev->bitmap_info.offset; in super_1_validate()
2032 if (mddev->bitmap && mddev->bitmap_info.file == NULL) { in super_1_sync()
2033 sb->bitmap_offset = cpu_to_le32((__u32)mddev->bitmap_info.offset); in super_1_sync()
2190 } else if (rdev->mddev->bitmap_info.offset) { in super_1_rdev_size_change()
2248 if (bitmap && !rdev->mddev->bitmap_info.file && in super_1_allow_new_offset()
2249 rdev->sb_start + rdev->mddev->bitmap_info.offset + in super_1_allow_new_offset()
6022 (mddev->bitmap_info.file || mddev->bitmap_info.offset)) { in md_run()
6037 if (mddev->bitmap_info.max_write_behind > 0) { in md_run()
6276 mddev->bitmap_info.offset = 0; in md_clean()
6277 mddev->bitmap_info.default_offset = 0; in md_clean()
6278 mddev->bitmap_info.default_space = 0; in md_clean()
6279 mddev->bitmap_info.chunksize = 0; in md_clean()
6280 mddev->bitmap_info.daemon_sleep = 0; in md_clean()
6281 mddev->bitmap_info.max_write_behind = 0; in md_clean()
6282 mddev->bitmap_info.nodes = 0; in md_clean()
6510 if (mddev->bitmap_info.file) { in do_md_stop()
6511 struct file *f = mddev->bitmap_info.file; in do_md_stop()
6513 mddev->bitmap_info.file = NULL; in do_md_stop()
6517 mddev->bitmap_info.offset = 0; in do_md_stop()
6696 if (mddev->bitmap && mddev->bitmap_info.offset) in get_array_info()
6727 if (mddev->bitmap_info.file) { in get_bitmap_file()
6728 ptr = file_path(mddev->bitmap_info.file, file->pathname, in get_bitmap_file()
7128 if (mddev->bitmap || mddev->bitmap_info.file) in set_bitmap_file()
7165 mddev->bitmap_info.file = f; in set_bitmap_file()
7166 mddev->bitmap_info.offset = 0; /* file overrides offset */ in set_bitmap_file()
7193 struct file *f = mddev->bitmap_info.file; in set_bitmap_file()
7196 mddev->bitmap_info.file = NULL; in set_bitmap_file()
7272 mddev->bitmap_info.default_offset = MD_SB_BYTES >> 9; in md_set_array_info()
7273 mddev->bitmap_info.default_space = 64*2 - (MD_SB_BYTES >> 9); in md_set_array_info()
7274 mddev->bitmap_info.offset = 0; in md_set_array_info()
7403 if (mddev->bitmap && mddev->bitmap_info.offset) in update_array_info()
7469 if (mddev->bitmap_info.default_offset == 0) { in update_array_info()
7473 mddev->bitmap_info.offset = in update_array_info()
7474 mddev->bitmap_info.default_offset; in update_array_info()
7475 mddev->bitmap_info.space = in update_array_info()
7476 mddev->bitmap_info.default_space; in update_array_info()
7497 if (mddev->bitmap_info.nodes) { in update_array_info()
7506 mddev->bitmap_info.nodes = 0; in update_array_info()
7514 mddev->bitmap_info.offset = 0; in update_array_info()