# Re: \[PATCH v14 032/138\] mm: Add folio\_mapped()

- From: Mike Rapoport \<rppt@kernel.org\>
- Date: 2021-07-21 09:47:25 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/07/210680
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/3.md

```text
On Thu, Jul 15, 2021 at 04:35:18AM +0100, Matthew Wilcox (Oracle) wrote:
> This function is the equivalent of page_mapped().  It is slightly
> shorter as we do not need to handle the PageTail() case.  Reimplement
> page_mapped() as a wrapper around folio_mapped().  folio_mapped()
> is 13 bytes smaller than page_mapped(), but the page_mapped() wrapper
> is 30 bytes, for a net increase of 17 bytes of text.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Acked-by: Vlastimil Babka <redacted>
> Reviewed-by: William Kucharski <redacted>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: David Howells <dhowells@redhat.com>
> Acked-by: Kirill A. Shutemov <redacted>
> ---
>  include/linux/mm.h       |  1 +
>  include/linux/mm_types.h |  6 ++++++
>  mm/folio-compat.c        |  6 ++++++
>  mm/util.c                | 29 ++++++++++++++++-------------
>  4 files changed, 29 insertions(+), 13 deletions(-)

Acked-by: Mike Rapoport <redacted>

```
