Home
last modified time | relevance | path

Searched refs:meta_dev_idx (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/drivers/block/drbd/
Ddrbd_int.h585 s32 meta_dev_idx; member
1802 switch (bdev->md.meta_dev_idx) { in drbd_md_first_sector()
1818 switch (bdev->md.meta_dev_idx) { in drbd_md_last_sector()
1847 switch (bdev->md.meta_dev_idx) { in drbd_get_max_capacity()
1876 const int meta_dev_idx = bdev->md.meta_dev_idx; in drbd_md_ss() local
1878 if (meta_dev_idx == DRBD_MD_INDEX_FLEX_EXT) in drbd_md_ss()
1883 if (meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_md_ss()
1884 meta_dev_idx == DRBD_MD_INDEX_FLEX_INT) in drbd_md_ss()
1888 return MD_128MB_SECT * bdev->md.meta_dev_idx; in drbd_md_ss()
Ddrbd_nl.c833 switch (bdev->md.meta_dev_idx) { in drbd_md_set_sector_offsets()
1749 (new_disk_conf->meta_dev_idx < 0) ? (void*)device : (void*)drbd_m_holder, in open_backing_devices()
1752 (new_disk_conf->meta_dev_idx != DRBD_MD_INDEX_FLEX_INT && in open_backing_devices()
1753 new_disk_conf->meta_dev_idx != DRBD_MD_INDEX_INTERNAL)); in open_backing_devices()
1866 if (new_disk_conf->meta_dev_idx < DRBD_MD_INDEX_FLEX_INT) { in drbd_adm_attach()
1887 (new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_adm_attach()
1888 new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_FLEX_INT)) { in drbd_adm_attach()
1917 if (new_disk_conf->meta_dev_idx < 0) { in drbd_adm_attach()
1923 min_md_device_sectors = MD_128MB_SECT * (new_disk_conf->meta_dev_idx + 1); in drbd_adm_attach()
1947 if (new_disk_conf->meta_dev_idx >= 0) in drbd_adm_attach()
Ddrbd_main.c3181 if (in_core->meta_dev_idx >= 0) { in check_offsets_and_sizes()
3220 in_core->meta_dev_idx, in check_offsets_and_sizes()
3256 bdev->md.meta_dev_idx = bdev->disk_conf->meta_dev_idx; in drbd_md_read()
/Linux-v5.10/include/linux/
Ddrbd_genl.h108 __s32_field(3, DRBD_F_REQUIRED | DRBD_F_INVARIANT, meta_dev_idx)