Re: [RFC PATCH V6 16/19] memory-hotplug: free memmap of sparse-vmemmap

2012-08-06 Thread Wen Congyang
At 08/03/2012 03:49 PM, we...@cn.fujitsu.com Wrote: > From: Wen Congyang This line is wrong. This patch is from Yasuaki Ishimatsu > > All pages of virtual mapping in removed memory cannot be freed, since some > pages > used as PGD/PUD includes not only removed memory but also other memory. S

[RFC PATCH V6 16/19] memory-hotplug: free memmap of sparse-vmemmap

2012-08-03 Thread wency
From: Wen Congyang All pages of virtual mapping in removed memory cannot be freed, since some pages used as PGD/PUD includes not only removed memory but also other memory. So the patch checks whether page can be freed or not. How to check whether page can be freed or not? 1. When removing memor