Thread (138 messages) 138 messages, 5 authors, 2025-07-03

Re: [PATCH v1 27/29] docs/mm: convert from "Non-LRU page migration" to "movable_ops page migration"

From: David Hildenbrand <hidden>
Date: 2025-07-02 14:53:00
Also in: linux-doc, linux-fsdevel, linux-mm, lkml, virtualization

On 02.07.25 16:23, Harry Yoo wrote:
On Mon, Jun 30, 2025 at 03:00:08PM +0200, David Hildenbrand wrote:
quoted
Let's bring the docs up-to-date.

Reviewed-by: Zi Yan <ziy@nvidia.com>
Signed-off-by: David Hildenbrand <redacted>
---

+movable_ops page migration
+==========================
+
+Selected typed, non-folio pages (e.g., pages inflated in a memory balloon,
+zsmalloc pages) can be migrated using the movable_ops migration framework.
+
+The "struct movable_operations" provide callbacks specific to a page type
+for isolating, migrating and un-isolating (putback) these pages.
+
+Once a page is indicated as having movable_ops, that condition must not
+change until the page was freed back to the buddy. This includes not
+changing/clearing the page type and not changing/clearing the
+PG_movable_ops page flag.
+
+Arbitrary drivers cannot currently make use of this framework, as it
+requires:
+
+(a) a page type
+(b) indicating them as possibly having movable_ops in page_has_movable_ops()
+    based on the page type
quoted
+(c) returning the movable_ops from page_has_movable_ops() based on the page
+    type
I think you meant page_movable_ops()?
Very right, thanks!

-- 
Cheers,

David / dhildenb

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help