Lines Matching refs:ldev
201 fp = mdev->ldev->dc.fencing;
357 mdev->ldev->md.uuid[UI_CURRENT] &= ~(u64)1;
369 && mdev->ldev->md.uuid[UI_BITMAP] == 0) || forced)
372 mdev->ldev->md.uuid[UI_CURRENT] |= (u64)1;
537 prev_first_sect = drbd_md_first_sector(mdev->ldev);
538 prev_size = mdev->ldev->md.md_size_sect;
539 la_size = mdev->ldev->md.la_size_sect;
542 drbd_md_set_sector_offsets(mdev, mdev->ldev);
544 size = drbd_new_dev_size(mdev, mdev->ldev, flags & DDSF_FORCED);
565 mdev->ldev->md.la_size_sect = size;
572 la_size_changed = (la_size != mdev->ldev->md.la_size_sect);
574 md_moved = prev_first_sect != drbd_md_first_sector(mdev->ldev)
575 || prev_size != mdev->ldev->md.md_size_sect;
704 struct request_queue * const b = mdev->ldev->backing_bdev->bd_disk->queue;
705 int max_segments = mdev->ldev->dc.max_bio_bvecs;
1010 D_ASSERT(mdev->ldev == NULL);
1011 mdev->ldev = nbc;
1019 if (drbd_md_test_flag(mdev->ldev, MDF_CRASHED_PRIMARY))
1024 if (drbd_md_test_flag(mdev->ldev, MDF_PRIMARY_IND)) {
1052 drbd_md_test_flag(mdev->ldev, MDF_PRIMARY_IND) &&
1053 !drbd_md_test_flag(mdev->ldev, MDF_CONNECTED_IND))
1063 if (drbd_md_test_flag(mdev->ldev, MDF_FULL_SYNC)) {
1090 if (drbd_md_test_flag(mdev->ldev, MDF_CONSISTENT)) {
1091 if (drbd_md_test_flag(mdev->ldev, MDF_WAS_UP_TO_DATE))
1099 if (drbd_md_test_flag(mdev->ldev, MDF_PEER_OUT_DATED))
1103 (ns.pdsk == D_OUTDATED || mdev->ldev->dc.fencing == FP_DONT_CARE))
1133 mdev->ldev->md.uuid[UI_CURRENT] |= (u64)1;
1135 mdev->ldev->md.uuid[UI_CURRENT] &= ~(u64)1;
1512 if (mdev->ldev->known_size != drbd_get_capacity(mdev->ldev->backing_bdev))
1513 mdev->ldev->known_size = drbd_get_capacity(mdev->ldev->backing_bdev);
1515 mdev->ldev->dc.disk_size = (sector_t)rs.resize_size;
1787 tl = disk_conf_to_tags(mdev, &mdev->ldev->dc, tl);
1833 tl = tl_add_blob(tl, T_uuids, mdev->ldev->md.uuid, UI_SIZE*sizeof(u64));
1834 tl = tl_add_int(tl, T_uuids_flags, &mdev->ldev->md.flags);
1907 mdev->ldev->md.uuid[UI_CURRENT] == UUID_JUST_CREATED && args.clear_bm) {