Searched refs:meta_dev_idx (Results 1 – 3 of 3) sorted by relevance
601 s32 meta_dev_idx; member1816 switch (bdev->md.meta_dev_idx) { in drbd_md_first_sector()1832 switch (bdev->md.meta_dev_idx) { in drbd_md_last_sector()1861 switch (bdev->md.meta_dev_idx) { in drbd_get_max_capacity()1890 const int meta_dev_idx = bdev->md.meta_dev_idx; in drbd_md_ss() local1892 if (meta_dev_idx == DRBD_MD_INDEX_FLEX_EXT) in drbd_md_ss()1897 if (meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_md_ss()1898 meta_dev_idx == DRBD_MD_INDEX_FLEX_INT) in drbd_md_ss()1902 return MD_128MB_SECT * bdev->md.meta_dev_idx; in drbd_md_ss()
781 switch (bdev->md.meta_dev_idx) { in drbd_md_set_sector_offsets()1538 if (new_disk_conf->meta_dev_idx < DRBD_MD_INDEX_FLEX_INT) { in drbd_adm_attach()1580 (new_disk_conf->meta_dev_idx < 0) ? in drbd_adm_attach()1591 (new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_adm_attach()1592 new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_FLEX_INT)) { in drbd_adm_attach()1624 if (new_disk_conf->meta_dev_idx < 0) { in drbd_adm_attach()1630 min_md_device_sectors = MD_128MB_SECT * (new_disk_conf->meta_dev_idx + 1); in drbd_adm_attach()1655 if (new_disk_conf->meta_dev_idx >= 0) in drbd_adm_attach()
3204 if (in_core->meta_dev_idx >= 0) { in check_offsets_and_sizes()3243 in_core->meta_dev_idx, in check_offsets_and_sizes()3279 bdev->md.meta_dev_idx = bdev->disk_conf->meta_dev_idx; in drbd_md_read()