The patch titled Subject: mm-swap-fix-the-comment-of-get_kernel_pages-fix has been added to the -mm mm-unstable branch. Its filename is mm-swap-fix-the-comment-of-get_kernel_pages-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-swap-fix-the-comment-of-get_kernel_pages-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-swap-fix-the-comment-of-get_kernel_pages-fix Date: Tue May 17 04:36:31 PM PDT 2022 s/nr_pages/nr_segs/ also, per David, reflow comment Cc: Alistair Popple <apopple@xxxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Miaohe Lin <linmiaohe@xxxxxxxxxx> Cc: Naoya Horiguchi <naoya.horiguchi@xxxxxxx> Cc: NeilBrown <neilb@xxxxxxx> Cc: Peter Xu <peterx@xxxxxxxxxx> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/swap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/mm/swap.c~mm-swap-fix-the-comment-of-get_kernel_pages-fix +++ a/mm/swap.c @@ -166,10 +166,10 @@ EXPORT_SYMBOL(put_pages_list); * @pages: array that receives pointers to the pages pinned. * Should be at least nr_segs long. * - * Returns number of pages pinned. This may be fewer than the number - * requested. If nr_pages is 0 or negative, returns 0. If no pages - * were pinned, returns 0. Each page returned must be released with - * a put_page() call when it is finished with. + * Returns number of pages pinned. This may be fewer than the number requested. + * If nr_segs is 0 or negative, returns 0. If no pages were pinned, returns 0. + * Each page returned must be released with a put_page() call when it is + * finished with. */ int get_kernel_pages(const struct kvec *kiov, int nr_segs, int write, struct page **pages) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are assoc_array-fix-bug_on-during-garbage-collect-fix.patch mm-swap-avoid-calling-swp_swap_info-when-try-to-check-swp_stable_writes-fix.patch mm-swap-add-helper-swap_offset_available-fix.patch mm-swap-fix-the-comment-of-get_kernel_pages-fix.patch mm-page_alloc-remotely-drain-per-cpu-lists-checkpatch-fixes.patch tmpfs-fix-undefined-behaviour-in-shmem_reconfigure-fix.patch linux-next-rejects.patch linux-next-git-rejects.patch mm-oom_killc-fix-vm_oom_kill_table-ifdeffery.patch