On 10/10/19 12:28 AM, lantianyu1986@xxxxxxxxx wrote: > When release mem region, old mem region may be splited to > two regions. Current allocate new struct resource for high > end mem region but not move child resources whose ranges are > in the high end range to new resource. When adjust old mem > region's range, adjust_resource() detects child region's range > is out of new range and return error. Move child resources to > high end resource before adjusting old mem range. >From the comment, it appears the old code intended to have the behavior that you are changing. Could you explain _why_ this has become a problem for you?