# Re: \[PATCH v14 052/138\] mm: Add folio\_raw\_mapping()

- From: Matthew Wilcox \<willy@infradead.org\>
- Date: 2021-08-14 17:06:39 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/08/212402
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/6.md

```text
On Wed, Aug 11, 2021 at 03:59:06PM +0200, Vlastimil Babka wrote:
> On 7/15/21 5:35 AM, Matthew Wilcox (Oracle) wrote:
> > Convert __page_rmapping to folio_raw_mapping and move it to mm/internal.h.
> > It's only a couple of instructions (load and mask), so it's definitely
> > going to be cheaper to inline it than call it.  Leave page_rmapping
> > out of line.
> 
> Maybe mention the page_anon_vma() in changelog too?

Convert __page_rmapping to folio_raw_mapping and move it to mm/internal.h.
It's only a couple of instructions (load and mask), so it's definitely
going to be cheaper to inline it than call it.  Leave page_rmapping
out of line.  Change page_anon_vma() to not call folio_raw_mapping() --
it's more efficient to do the subtraction than the mask.

```
