Re: [HMM-CDM 3/5] mm/memcontrol: allow to uncharge page without using page->lru field

2017-06-15 Thread Jerome Glisse
On Thu, Jun 15, 2017 at 01:31:28PM +1000, Balbir Singh wrote: > On Wed, 14 Jun 2017 16:11:42 -0400 > Jérôme Glisse wrote: > > > HMM pages (private or public device pages) are ZONE_DEVICE page and > > thus you can not use page->lru fields of those pages. This patch > > re-arrange the uncharge to a

Re: [HMM-CDM 3/5] mm/memcontrol: allow to uncharge page without using page->lru field

2017-06-14 Thread Balbir Singh
On Wed, 14 Jun 2017 16:11:42 -0400 Jérôme Glisse wrote: > HMM pages (private or public device pages) are ZONE_DEVICE page and > thus you can not use page->lru fields of those pages. This patch > re-arrange the uncharge to allow single page to be uncharge without > modifying the lru field of the s

[HMM-CDM 3/5] mm/memcontrol: allow to uncharge page without using page->lru field

2017-06-14 Thread Jérôme Glisse
HMM pages (private or public device pages) are ZONE_DEVICE page and thus you can not use page->lru fields of those pages. This patch re-arrange the uncharge to allow single page to be uncharge without modifying the lru field of the struct page. There is no change to memcontrol logic, it is the sam