Re: [HMM 02/16] mm/put_page: move ref decrement to put_zone_device_page()

2017-03-19 Thread Mel Gorman
On Thu, Mar 16, 2017 at 12:05:21PM -0400, J?r?me Glisse wrote: > This does not affect non ZONE_DEVICE page. In order to allow > ZONE_DEVICE page to be tracked we need to detect when refcount > of a ZONE_DEVICE page reach 1 (not 0 as non ZONE_DEVICE page). > > This patch just move put_page_testzero

[HMM 02/16] mm/put_page: move ref decrement to put_zone_device_page()

2017-03-16 Thread Jérôme Glisse
This does not affect non ZONE_DEVICE page. In order to allow ZONE_DEVICE page to be tracked we need to detect when refcount of a ZONE_DEVICE page reach 1 (not 0 as non ZONE_DEVICE page). This patch just move put_page_testzero() from put_page() to put_zone_device_page() and only for ZONE_DEVICE. It