Commit 23647618 authored by Anshuman Khandual's avatar Anshuman Khandual Committed by Linus Torvalds

mm/debug_vm_pgtable: update comments regarding migration swap entries

Commit 4dd845b5 ("mm/swapops: rework swap entry manipulation code")
had changed migtation entry related helpers.  Just update
debug_vm_pgatble() synced documentation to reflect those changes.

Link: https://lkml.kernel.org/r/1641880417-24848-1-git-send-email-anshuman.khandual@arm.comSigned-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3e9d80a8
...@@ -247,12 +247,12 @@ SWAP Page Table Helpers ...@@ -247,12 +247,12 @@ SWAP Page Table Helpers
| __swp_to_pmd_entry | Creates a mapped PMD from a swapped entry (arch) | | __swp_to_pmd_entry | Creates a mapped PMD from a swapped entry (arch) |
+---------------------------+--------------------------------------------------+ +---------------------------+--------------------------------------------------+
| is_migration_entry | Tests a migration (read or write) swapped entry | | is_migration_entry | Tests a migration (read or write) swapped entry |
+---------------------------+--------------------------------------------------+ +-------------------------------+----------------------------------------------+
| is_write_migration_entry | Tests a write migration swapped entry | | is_writable_migration_entry | Tests a write migration swapped entry |
+---------------------------+--------------------------------------------------+ +-------------------------------+----------------------------------------------+
| make_migration_entry_read | Converts into read migration swapped entry | | make_readable_migration_entry | Creates a read migration swapped entry |
+---------------------------+--------------------------------------------------+ +-------------------------------+----------------------------------------------+
| make_migration_entry | Creates a migration swapped entry (read or write)| | make_writable_migration_entry | Creates a write migration swapped entry |
+---------------------------+--------------------------------------------------+ +-------------------------------+----------------------------------------------+
[1] https://lore.kernel.org/linux-mm/20181017020930.GN30832@redhat.com/ [1] https://lore.kernel.org/linux-mm/20181017020930.GN30832@redhat.com/
...@@ -888,8 +888,8 @@ static void __init swap_migration_tests(struct pgtable_debug_args *args) ...@@ -888,8 +888,8 @@ static void __init swap_migration_tests(struct pgtable_debug_args *args)
pr_debug("Validating swap migration\n"); pr_debug("Validating swap migration\n");
/* /*
* make_migration_entry() expects given page to be * make_[readable|writable]_migration_entry() expects given page to
* locked, otherwise it stumbles upon a BUG_ON(). * be locked, otherwise it stumbles upon a BUG_ON().
*/ */
__SetPageLocked(page); __SetPageLocked(page);
swp = make_writable_migration_entry(page_to_pfn(page)); swp = make_writable_migration_entry(page_to_pfn(page));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment