[PATCH] mm: fix pfn_t to page conversion in vm_insert_mixed

2016-01-27 Thread Tomi Valkeinen
On 26/01/16 20:37, Dan Williams wrote: > pfn_t_to_page() honors the flags in the pfn_t value to determine if a > pfn is backed by a page. However, vm_insert_mixed() was originally > written to use pfn_valid() to make this determination. To restore the > old/correct behavior, ignore the pfn_t fla

[PATCH] mm: fix pfn_t to page conversion in vm_insert_mixed

2016-01-26 Thread Julian Margetson
On 1/26/2016 4:34 PM, Dan Williams wrote: > On Tue, Jan 26, 2016 at 11:46 AM, Julian Margetson > wrote: >> On 1/26/2016 2:37 PM, Dan Williams wrote: >> >> pfn_t_to_page() honors the flags in the pfn_t value to determine if a >> pfn is backed by a page. However, vm_insert_mixed() was originally >

[PATCH] mm: fix pfn_t to page conversion in vm_insert_mixed

2016-01-26 Thread Julian Margetson
On 1/26/2016 2:37 PM, Dan Williams wrote: > pfn_t_to_page() honors the flags in the pfn_t value to determine if a > pfn is backed by a page. However, vm_insert_mixed() was originally > written to use pfn_valid() to make this determination. To restore the > old/correct behavior, ignore the pfn_t f

[PATCH] mm: fix pfn_t to page conversion in vm_insert_mixed

2016-01-26 Thread Dan Williams
On Tue, Jan 26, 2016 at 11:46 AM, Julian Margetson wrote: > On 1/26/2016 2:37 PM, Dan Williams wrote: > > pfn_t_to_page() honors the flags in the pfn_t value to determine if a > pfn is backed by a page. However, vm_insert_mixed() was originally > written to use pfn_valid() to make this determinat

[PATCH] mm: fix pfn_t to page conversion in vm_insert_mixed

2016-01-26 Thread Dan Williams
pfn_t_to_page() honors the flags in the pfn_t value to determine if a pfn is backed by a page. However, vm_insert_mixed() was originally written to use pfn_valid() to make this determination. To restore the old/correct behavior, ignore the pfn_t flags in the !pfn_t_devmap() case and fallback to t