# Re: \[PATCH v6 01/13\] ext4/xfs: add page refcount helper

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-08-15 09:01:07 
- List: linux-ext4
- Page: https://ratatoskr.run/linux-ext4/2021/08/6510318
- Thread: https://ratatoskr.run/linux-mm/2021/08/6510276/t.md

```text
On Fri, Aug 13, 2021 at 01:31:38AM -0500, Alex Sierra wrote:
> From: Ralph Campbell <redacted>
> 
> There are several places where ZONE_DEVICE struct pages assume a reference
> count == 1 means the page is idle and free. Instead of open coding this,
> add a helper function to hide this detail.
> 
> v3:
> [AS]: rename dax_layout_is_idle_page func to dax_page_unused
> 
> v4:
> [AS]: This ref count functionality was missing on fuse/dax.c.

These per-patch changelog goes under the "---", otherwise they totally
mess up the logs when commited to git.  Same for the other patches in
this series.

But the changes itself looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
```
