Re: [PATCH v3 1/3] mm: document zone device struct page field usage

2019-07-25 Thread Ralph Campbell
On 7/24/19 10:38 PM, Christoph Hellwig wrote: On Wed, Jul 24, 2019 at 04:26:58PM -0700, Ralph Campbell wrote: Struct page for ZONE_DEVICE private pages uses the page->mapping and and page->index fields while the source anonymous pages are migrated to device private memory. This is so rmap_walk

Re: [PATCH v3 1/3] mm: document zone device struct page field usage

2019-07-25 Thread Ralph Campbell
On 7/24/19 6:22 PM, Jason Gunthorpe wrote: On Wed, Jul 24, 2019 at 04:26:58PM -0700, Ralph Campbell wrote: Struct page for ZONE_DEVICE private pages uses the page->mapping and and page->index fields while the source anonymous pages are migrated to device private memory. This is so rmap_walk()

Re: [PATCH v3 1/3] mm: document zone device struct page field usage

2019-07-24 Thread Christoph Hellwig
On Wed, Jul 24, 2019 at 04:26:58PM -0700, Ralph Campbell wrote: > Struct page for ZONE_DEVICE private pages uses the page->mapping and > and page->index fields while the source anonymous pages are migrated to > device private memory. This is so rmap_walk() can find the page when > migrating the ZON

Re: [PATCH v3 1/3] mm: document zone device struct page field usage

2019-07-24 Thread Jason Gunthorpe
On Wed, Jul 24, 2019 at 04:26:58PM -0700, Ralph Campbell wrote: > Struct page for ZONE_DEVICE private pages uses the page->mapping and > and page->index fields while the source anonymous pages are migrated to > device private memory. This is so rmap_walk() can find the page when > migrating the ZON

[PATCH v3 1/3] mm: document zone device struct page field usage

2019-07-24 Thread Ralph Campbell
Struct page for ZONE_DEVICE private pages uses the page->mapping and and page->index fields while the source anonymous pages are migrated to device private memory. This is so rmap_walk() can find the page when migrating the ZONE_DEVICE private page back to system memory. ZONE_DEVICE pmem backed fsd