/* Creates a new current UUID, and rotates the old current UUID into the bitmap slot. Causes an incremental resync upon next connect.  */
void drbd_uuid_new_current(struct drbd_conf *mdev) __must_hold(local)
/* Creates a new current UUID, and rotates the old current UUID into the bitmap slot. Causes an incremental resync upon next connect.  */
void drbd_uuid_new_current(struct drbd_conf *mdev) __must_hold(local)
{
	u64 val;
	dev_info(DEV, "Creating new current UUID\n");
	D_ASSERT(mdev->ldev->md.uuid[UI_BITMAP] == 0);
	mdev->ldev->md.uuid[UI_BITMAP] = mdev->ldev->md.uuid[UI_CURRENT];
	get_random_bytes(&val, sizeof(u64));
	_drbd_uuid_set(mdev, UI_CURRENT, val);
}