<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/rmap.h, branch linux-5.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-08-17T12:41:42Z</updated>
<entry>
<title>mm: rmap: use the correct parameter name for DEFINE_PAGE_VMA_WALK</title>
<updated>2022-08-17T12:41:42Z</updated>
<author>
<name>Yang Shi</name>
</author>
<published>2022-07-04T01:08:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e53b162cd8c032aa3f5234a2ae477abe732dffd5'/>
<id>urn:sha1:e53b162cd8c032aa3f5234a2ae477abe732dffd5</id>
<content type='text'>
[ Upstream commit 507db7927cd181d409dd495c8384b8e14c21c600 ]

The parameter used by DEFINE_PAGE_VMA_WALK is _page not page, fix the
parameter name.  It didn't cause any build error, it is probably because
the only caller is write_protect_page() from ksm.c, which pass in page.

Link: https://lkml.kernel.org/r/20220512174551.81279-1-shy828301@gmail.com
Fixes: 2aff7a4755be ("mm: Convert page_vma_mapped_walk to work on PFNs")
Signed-off-by: Yang Shi &lt;shy828301@gmail.com&gt;
Reviewed-by: Muchun Song &lt;songmuchun@bytedance.com&gt;
Reviewed-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Cc: Muchun Song &lt;songmuchun@bytedance.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>mm/rmap: Constify the rmap_walk_control argument</title>
<updated>2022-03-21T17:01:35Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-01-29T21:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=84fbbe21894bb9be8e16df408cbfbb9466fe396d'/>
<id>urn:sha1:84fbbe21894bb9be8e16df408cbfbb9466fe396d</id>
<content type='text'>
The rmap walking functions do not modify the rmap_walk_control, and
page_idle_clear_pte_refs() takes advantage of that to move construction
of the rmap_walk_control to compile time.  This lets us remove an
unclean cast.

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm/rmap: Convert rmap_walk() to take a folio</title>
<updated>2022-03-21T17:01:35Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-01-29T21:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f031c6f042cb8a9b221a8b6b80e69de5170f830'/>
<id>urn:sha1:2f031c6f042cb8a9b221a8b6b80e69de5170f830</id>
<content type='text'>
This ripples all the way through to every calling and called function
from rmap.

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm/rmap: Turn page_lock_anon_vma_read() into folio_lock_anon_vma_read()</title>
<updated>2022-03-21T17:01:35Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-02-02T04:33:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9595d76942b8714627d670a7e7ae543812c731ae'/>
<id>urn:sha1:9595d76942b8714627d670a7e7ae543812c731ae</id>
<content type='text'>
Add back page_lock_anon_vma_read() as a wrapper.  This saves a few calls
to compound_head().  If any callers were passing a tail page before,
this would have failed to lock the anon VMA as page-&gt;mapping is not
valid for tail pages.

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm/migrate: Convert remove_migration_ptes() to folios</title>
<updated>2022-03-21T17:01:35Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-01-29T04:32:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4eecb8b9163df82c87c91764a02fff228ef25f6d'/>
<id>urn:sha1:4eecb8b9163df82c87c91764a02fff228ef25f6d</id>
<content type='text'>
Convert the implementation and all callers.

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm/rmap: Convert try_to_migrate() to folios</title>
<updated>2022-03-21T17:01:32Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-01-28T19:29:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b8554c527f3cfa183f6c06d231a9387873205a0'/>
<id>urn:sha1:4b8554c527f3cfa183f6c06d231a9387873205a0</id>
<content type='text'>
Convert the callers to pass a folio and the try_to_migrate_one()
worker to use a folio throughout.  Fixes an assumption that a
folio must be &lt;= PMD size.

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm/rmap: Convert try_to_unmap() to take a folio</title>
<updated>2022-03-21T16:59:03Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-02-15T14:28:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=869f7ee6f6477341f859c8b0949ae81caf9ca7f3'/>
<id>urn:sha1:869f7ee6f6477341f859c8b0949ae81caf9ca7f3</id>
<content type='text'>
Change all three callers and the worker function try_to_unmap_one().

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm/rmap: Turn page_referenced() into folio_referenced()</title>
<updated>2022-03-21T16:59:03Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-01-21T16:27:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3ac04132c4b9bc5c9c14608424d410e7ca3b400'/>
<id>urn:sha1:b3ac04132c4b9bc5c9c14608424d410e7ca3b400</id>
<content type='text'>
Both its callers pass a page which was previously on an LRU list,
so were passing a folio by definition.  Use the type system to enforce
that and remove a few calls to compound_head().

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>mm: Convert page_vma_mapped_walk to work on PFNs</title>
<updated>2022-03-21T16:59:02Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-02-03T16:40:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2aff7a4755bed2870ee23b75bc88cdc8d76cdd03'/>
<id>urn:sha1:2aff7a4755bed2870ee23b75bc88cdc8d76cdd03</id>
<content type='text'>
page_mapped_in_vma() really just wants to walk one page, but as the
code stands, if passed the head page of a compound page, it will
walk every page in the compound page.  Extract pfn/nr_pages/pgoff
from the struct page early, so they can be overridden by
page_mapped_in_vma().

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
<entry>
<title>mm: Add DEFINE_PAGE_VMA_WALK and DEFINE_FOLIO_VMA_WALK</title>
<updated>2022-03-21T16:59:02Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2022-02-03T14:06:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eed05e54d275b3cfc5d8c79843c5276a5878e94a'/>
<id>urn:sha1:eed05e54d275b3cfc5d8c79843c5276a5878e94a</id>
<content type='text'>
Instead of declaring a struct page_vma_mapped_walk directly,
use these helpers to allow us to transition to a PFN approach in the
following patches.

Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
</content>
</entry>
</feed>
