[Nouveau] [PATCH] mm: make device private reference counts zero based

2020-10-10 Thread Ralph Campbell
ZONE_DEVICE struct pages have an extra reference count that complicates the code for put_page() and several places in the kernel that need to check the reference count to see that a page is not being used (gup, compaction, migration, etc.). Clean up the code so the reference count doesn't need to

Re: [Nouveau] [PATCH] mm: make device private reference counts zero based

2020-10-09 Thread Ralph Campbell
On 10/9/20 9:53 AM, Ira Weiny wrote: On Thu, Oct 08, 2020 at 10:25:44AM -0700, Ralph Campbell wrote: ZONE_DEVICE struct pages have an extra reference count that complicates the code for put_page() and several places in the kernel that need to check the reference count to see that a page is

Re: [Nouveau] [PATCH] mm: make device private reference counts zero based

2020-10-09 Thread Ira Weiny
On Thu, Oct 08, 2020 at 10:25:44AM -0700, Ralph Campbell wrote: > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, >