# Re: \[PATCH v3 11/14\] device-dax: ensure dev\_dax-\>pgmap is valid for dynamic devices

- From: Joao Martins \<hidden\>
- Date: 2021-07-28 15:56:58 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/07/6510132
- Thread: https://ratatoskr.run/linux-mm/2021/07/6509813/t.md

```text


On 7/28/21 8:30 AM, Dan Williams wrote:
> On Wed, Jul 14, 2021 at 12:36 PM Joao Martins [ref] wrote:
>>
>> Right now, only static dax regions have a valid @pgmap pointer in its
>> struct dev_dax. Dynamic dax case however, do not.
>>
>> In preparation for device-dax compound pagemap support, make sure that
>> dev_dax pgmap field is set after it has been allocated and initialized.
> 
> I think this is ok to fold into the patch that needs it.

OK, I've squashed that in.
```
