Re: [PATCH v4 5/5] mm: Fix memory_failure() handling of dax-namespace metadata

2021-01-13 Thread 堀口 直也
On Wed, Jan 13, 2021 at 04:43:37PM -0800, Dan Williams wrote: > Given 'struct dev_pagemap' spans both data pages and metadata pages be > careful to consult the altmap if present to delineate metadata. In fact > the pfn_first() helper already identifies the first valid data pfn, so > export that hel

[PATCH v4 5/5] mm: Fix memory_failure() handling of dax-namespace metadata

2021-01-13 Thread Dan Williams
Given 'struct dev_pagemap' spans both data pages and metadata pages be careful to consult the altmap if present to delineate metadata. In fact the pfn_first() helper already identifies the first valid data pfn, so export that helper for other code paths via pgmap_pfn_valid(). Other usage of get_de