# Re: \[PATCH v14 013/138\] mm/filemap: Add folio\_index(), folio\_file\_page() and folio\_contains()

- From: Mike Rapoport \<rppt@kernel.org\>
- Date: 2021-07-20 10:45:45 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/07/210556
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/3.md

```text
On Thu, Jul 15, 2021 at 04:34:59AM +0100, Matthew Wilcox (Oracle) wrote:
> folio_index() is the equivalent of page_index() for folios.
> folio_file_page() is the equivalent of find_subpage().
> folio_contains() is the equivalent of thp_contains().
> 
> No changes to generated code.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Acked-by: Jeff Layton <jlayton@kernel.org>
> Acked-by: Kirill A. Shutemov <redacted>
> Acked-by: Vlastimil Babka <redacted>
> Reviewed-by: William Kucharski <redacted>
> Reviewed-by: David Howells <dhowells@redhat.com>
> ---

Acked-by: Mike Rapoport <redacted>


```
