Lines Matching refs:ldev
975 rv = blkdev_issue_flush(mdev->ldev->backing_bdev, GFP_KERNEL,
1138 if (wo == WO_bio_barrier && mdev->ldev->dc.no_disk_barrier)
1140 if (wo == WO_bdev_flush && mdev->ldev->dc.no_disk_flush)
1142 if (wo == WO_drain_io && mdev->ldev->dc.no_disk_drain)
1179 bio->bi_bdev = mdev->ldev->backing_bdev;
2172 self = mdev->ldev->md.uuid[UI_BITMAP] & 1;
2243 self = mdev->ldev->md.uuid[UI_BITMAP] & 1;
2293 self = mdev->ldev->md.uuid[UI_BITMAP] & 1;
2363 self = mdev->ldev->md.uuid[UI_CURRENT] & ~((u64)1);
2383 if (mdev->p_uuid[UI_BITMAP] == (u64)0 && mdev->ldev->md.uuid[UI_BITMAP] != (u64)0) {
2388 if ((mdev->ldev->md.uuid[UI_BITMAP] & ~((u64)1)) == (mdev->p_uuid[UI_HISTORY_START] & ~((u64)1)) &&
2389 (mdev->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1)) == (mdev->p_uuid[UI_HISTORY_START + 1] & ~((u64)1))) {
2393 drbd_uuid_dump(mdev, "self", mdev->ldev->md.uuid,
2404 if (mdev->ldev->md.uuid[UI_BITMAP] == (u64)0 && mdev->p_uuid[UI_BITMAP] != (u64)0) {
2409 if ((mdev->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1)) == (mdev->p_uuid[UI_BITMAP] & ~((u64)1)) &&
2410 (mdev->ldev->md.uuid[UI_HISTORY_START + 1] & ~((u64)1)) == (mdev->p_uuid[UI_HISTORY_START] & ~((u64)1))) {
2452 self = mdev->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1);
2468 self = mdev->ldev->md.uuid[UI_CURRENT] & ~((u64)1);
2476 self = mdev->ldev->md.uuid[UI_BITMAP] & ~((u64)1);
2482 self = mdev->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1);
2484 self = mdev->ldev->md.uuid[UI_HISTORY_START + 1] & ~((u64)1);
2493 _drbd_uuid_set(mdev, UI_BITMAP, mdev->ldev->md.uuid[UI_HISTORY_START]);
2494 _drbd_uuid_set(mdev, UI_HISTORY_START, mdev->ldev->md.uuid[UI_HISTORY_START + 1]);
2498 drbd_uuid_dump(mdev, "self", mdev->ldev->md.uuid,
2509 self = mdev->ldev->md.uuid[i] & ~((u64)1);
2515 self = mdev->ldev->md.uuid[UI_BITMAP] & ~((u64)1);
2522 self = mdev->ldev->md.uuid[i] & ~((u64)1);
2548 drbd_uuid_dump(mdev, "self", mdev->ldev->md.uuid, mdev->comm_bm_set, 0);
2972 p_size, drbd_get_max_capacity(mdev->ldev));
2974 p_usize, mdev->ldev->dc.disk_size);
2979 p_usize = min_not_zero((sector_t)mdev->ldev->dc.disk_size,
2982 my_usize = mdev->ldev->dc.disk_size;
2984 if (mdev->ldev->dc.disk_size != p_usize) {
2985 mdev->ldev->dc.disk_size = p_usize;
2987 (unsigned long)mdev->ldev->dc.disk_size);
2992 if (drbd_new_dev_size(mdev, mdev->ldev, 0) <
2998 mdev->ldev->dc.disk_size = my_usize;
3019 if (mdev->ldev->known_size != drbd_get_capacity(mdev->ldev->backing_bdev)) {
3020 mdev->ldev->known_size = drbd_get_capacity(mdev->ldev->backing_bdev);
3091 mdev->ldev->md.uuid[UI_CURRENT] == UUID_JUST_CREATED &&
3775 fp = mdev->ldev->dc.fencing;