With deep-copyup, there is no longer a reason to shrink the
parent overlap for IO operations.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
return m_new_size;
}
- inline uint64_t get_parent_overlap() const {
- return m_new_parent_overlap;
- }
-
private:
/**
* Resize goes through the following state machine to resize the image
int ImageCtx::get_parent_overlap(snap_t in_snap_id, uint64_t *overlap) const
{
assert(snap_lock.is_locked());
- if (in_snap_id == CEPH_NOSNAP && !async_resize_reqs.empty() &&
- async_resize_reqs.front()->shrinking()) {
- *overlap = async_resize_reqs.front()->get_parent_overlap();
- return 0;
- }
-
const parent_info *info = get_parent_info(in_snap_id);
if (info) {
*overlap = info->overlap;