Searched refs:meta_dev_idx (Results 1 – 4 of 4) sorted by relevance
585 s32 meta_dev_idx; member1831 switch (bdev->md.meta_dev_idx) { in drbd_md_first_sector()1847 switch (bdev->md.meta_dev_idx) { in drbd_md_last_sector()1876 switch (bdev->md.meta_dev_idx) { in drbd_get_max_capacity()1905 const int meta_dev_idx = bdev->md.meta_dev_idx; in drbd_md_ss() local1907 if (meta_dev_idx == DRBD_MD_INDEX_FLEX_EXT) in drbd_md_ss()1912 if (meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_md_ss()1913 meta_dev_idx == DRBD_MD_INDEX_FLEX_INT) in drbd_md_ss()1917 return MD_128MB_SECT * bdev->md.meta_dev_idx; in drbd_md_ss()
834 switch (bdev->md.meta_dev_idx) { in drbd_md_set_sector_offsets()1757 (new_disk_conf->meta_dev_idx < 0) ? (void*)device : (void*)drbd_m_holder, in open_backing_devices()1760 (new_disk_conf->meta_dev_idx != DRBD_MD_INDEX_FLEX_INT && in open_backing_devices()1761 new_disk_conf->meta_dev_idx != DRBD_MD_INDEX_INTERNAL)); in open_backing_devices()1874 if (new_disk_conf->meta_dev_idx < DRBD_MD_INDEX_FLEX_INT) { in drbd_adm_attach()1895 (new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_adm_attach()1896 new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_FLEX_INT)) { in drbd_adm_attach()1925 if (new_disk_conf->meta_dev_idx < 0) { in drbd_adm_attach()1931 min_md_device_sectors = MD_128MB_SECT * (new_disk_conf->meta_dev_idx + 1); in drbd_adm_attach()1956 if (new_disk_conf->meta_dev_idx >= 0) in drbd_adm_attach()
3248 if (in_core->meta_dev_idx >= 0) { in check_offsets_and_sizes()3287 in_core->meta_dev_idx, in check_offsets_and_sizes()3323 bdev->md.meta_dev_idx = bdev->disk_conf->meta_dev_idx; in drbd_md_read()
108 __s32_field(3, DRBD_F_REQUIRED | DRBD_F_INVARIANT, meta_dev_idx)