lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 31 Mar 2017 14:18:08 +0800
From:   "Hillf Danton" <hillf.zj@...baba-inc.com>
To:     "'Michal Hocko'" <mhocko@...nel.org>, <linux-mm@...ck.org>
Cc:     "'Andrew Morton'" <akpm@...ux-foundation.org>,
        "'Mel Gorman'" <mgorman@...e.de>,
        "'Vlastimil Babka'" <vbabka@...e.cz>,
        "'Andrea Arcangeli'" <aarcange@...hat.com>,
        "'Reza Arbab'" <arbab@...ux.vnet.ibm.com>,
        "'Yasuaki Ishimatsu'" <yasu.isimatu@...il.com>,
        "'Tang Chen'" <tangchen@...fujitsu.com>, <qiuxishi@...wei.com>,
        "'Kani Toshimitsu'" <toshi.kani@....com>, <slaoub@...il.com>,
        "'Joonsoo Kim'" <js1304@...il.com>,
        "'Andi Kleen'" <ak@...ux.intel.com>,
        "'David Rientjes'" <rientjes@...gle.com>,
        "'Daniel Kiper'" <daniel.kiper@...cle.com>,
        "'Igor Mammedov'" <imammedo@...hat.com>,
        "'Vitaly Kuznetsov'" <vkuznets@...hat.com>,
        "'LKML'" <linux-kernel@...r.kernel.org>,
        "'Michal Hocko'" <mhocko@...e.com>,
        "'Dan Williams'" <dan.j.williams@...il.com>,
        "'Heiko Carstens'" <heiko.carstens@...ibm.com>,
        "'Lai Jiangshan'" <laijs@...fujitsu.com>,
        "'Martin Schwidefsky'" <schwidefsky@...ibm.com>
Subject: Re: [PATCH 5/6] mm, memory_hotplug: do not associate hotadded memory to zones until online


On March 30, 2017 7:55 PM Michal Hocko wrote:
> 
> +static void __meminit resize_zone_range(struct zone *zone, unsigned long start_pfn,
> +		unsigned long nr_pages)
> +{
> +	unsigned long old_end_pfn = zone_end_pfn(zone);
> +
> +	if (start_pfn < zone->zone_start_pfn)
> +		zone->zone_start_pfn = start_pfn;
> +
> +	zone->spanned_pages = max(start_pfn + nr_pages, old_end_pfn) - zone->zone_start_pfn;
> +}
The implementation above implies zone can only go bigger.
Can we resize zone with the given data?

btw,  this mail address, Zhang Zhen <zhenzhang.zhang@...wei.com> , is not reachable. 

Hillf

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ