Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-15 Thread Michal Hocko
On Thu 14-09-17 11:43:10, YASUAKI ISHIMATSU wrote: > Hi Michal, > > On 09/13/2017 01:59 AM, Michal Hocko wrote: > > On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: > >> Hi Michal, > >> > >> Thanks you for reviewing my patch. > >> > >> On 09/12/2017 08:49 AM, Michal Hocko wrote: > >>> On Fri

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-15 Thread Michal Hocko
On Thu 14-09-17 11:43:10, YASUAKI ISHIMATSU wrote: > Hi Michal, > > On 09/13/2017 01:59 AM, Michal Hocko wrote: > > On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: > >> Hi Michal, > >> > >> Thanks you for reviewing my patch. > >> > >> On 09/12/2017 08:49 AM, Michal Hocko wrote: > >>> On Fri

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-14 Thread YASUAKI ISHIMATSU
Hi Michal, On 09/13/2017 01:59 AM, Michal Hocko wrote: > On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: >> Hi Michal, >> >> Thanks you for reviewing my patch. >> >> On 09/12/2017 08:49 AM, Michal Hocko wrote: >>> On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: __remove_section() calls

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-14 Thread YASUAKI ISHIMATSU
Hi Michal, On 09/13/2017 01:59 AM, Michal Hocko wrote: > On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: >> Hi Michal, >> >> Thanks you for reviewing my patch. >> >> On 09/12/2017 08:49 AM, Michal Hocko wrote: >>> On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: __remove_section() calls

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-12 Thread Michal Hocko
On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: > Hi Michal, > > Thanks you for reviewing my patch. > > On 09/12/2017 08:49 AM, Michal Hocko wrote: > > On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: > >> __remove_section() calls __remove_zone() to shrink zone and pgdat. > >> But due to

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-12 Thread Michal Hocko
On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: > Hi Michal, > > Thanks you for reviewing my patch. > > On 09/12/2017 08:49 AM, Michal Hocko wrote: > > On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: > >> __remove_section() calls __remove_zone() to shrink zone and pgdat. > >> But due to

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-12 Thread YASUAKI ISHIMATSU
Hi Michal, Thanks you for reviewing my patch. On 09/12/2017 08:49 AM, Michal Hocko wrote: > On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: >> __remove_section() calls __remove_zone() to shrink zone and pgdat. >> But due to wrong castings, __remvoe_zone() cannot shrink zone >> and pgdat

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-12 Thread YASUAKI ISHIMATSU
Hi Michal, Thanks you for reviewing my patch. On 09/12/2017 08:49 AM, Michal Hocko wrote: > On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: >> __remove_section() calls __remove_zone() to shrink zone and pgdat. >> But due to wrong castings, __remvoe_zone() cannot shrink zone >> and pgdat

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-12 Thread Michal Hocko
On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: > __remove_section() calls __remove_zone() to shrink zone and pgdat. > But due to wrong castings, __remvoe_zone() cannot shrink zone > and pgdat correctly if pfn is over 0x. > > So the patch fixes the following 3 wrong castings. > > 1.

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-12 Thread Michal Hocko
On Fri 08-09-17 16:43:04, YASUAKI ISHIMATSU wrote: > __remove_section() calls __remove_zone() to shrink zone and pgdat. > But due to wrong castings, __remvoe_zone() cannot shrink zone > and pgdat correctly if pfn is over 0x. > > So the patch fixes the following 3 wrong castings. > > 1.

[PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-08 Thread YASUAKI ISHIMATSU
__remove_section() calls __remove_zone() to shrink zone and pgdat. But due to wrong castings, __remvoe_zone() cannot shrink zone and pgdat correctly if pfn is over 0x. So the patch fixes the following 3 wrong castings. 1. find_smallest_section_pfn() returns 0 or start_pfn which defined

[PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-08 Thread YASUAKI ISHIMATSU
__remove_section() calls __remove_zone() to shrink zone and pgdat. But due to wrong castings, __remvoe_zone() cannot shrink zone and pgdat correctly if pfn is over 0x. So the patch fixes the following 3 wrong castings. 1. find_smallest_section_pfn() returns 0 or start_pfn which defined