All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,rppt@kernel.org,pasha.tatashin@soleen.com,graf@amazon.com,changyuanl@google.com,bhe@redhat.com,ptyadav@amazon.de,akpm@linux-foundation.org
Subject: [folded-merged] kho-initialize-tail-pages-for-higher-order-folios-properly-v2.patch removed from -mm tree
Date: Thu, 19 Jun 2025 20:45:52 -0700	[thread overview]
Message-ID: <20250620034553.7A237C4CEE3@smtp.kernel.org> (raw)


The quilt patch titled
     Subject: kho-initialize-tail-pages-for-higher-order-folios-properly-v2
has been removed from the -mm tree.  Its filename was
     kho-initialize-tail-pages-for-higher-order-folios-properly-v2.patch

This patch was dropped because it was folded into kho-initialize-tail-pages-for-higher-order-folios-properly.patch

------------------------------------------------------
From: Pratyush Yadav <ptyadav@amazon.de>
Subject: kho-initialize-tail-pages-for-higher-order-folios-properly-v2
Date: Fri, 13 Jun 2025 14:59:06 +0200

declare i in the loop instead of at the top

Link: https://lkml.kernel.org/r/20250613125916.39272-1-pratyush@kernel.org
Fixes: fc33e4b44b27 ("kexec: enable KHO support for memory preservation")
Signed-off-by: Pratyush Yadav <ptyadav@amazon.de>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Changyuan Lyu <changyuanl@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/kexec_handover.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/kernel/kexec_handover.c~kho-initialize-tail-pages-for-higher-order-folios-properly-v2
+++ a/kernel/kexec_handover.c
@@ -166,13 +166,13 @@ static int __kho_preserve_order(struct k
 /* almost as free_reserved_page(), just don't free the page */
 static void kho_restore_page(struct page *page, unsigned int order)
 {
-	unsigned int i, nr_pages = (1 << order);
+	unsigned int nr_pages = (1 << order);
 
 	/* Head page gets refcount of 1. */
 	set_page_count(page, 1);
 
 	/* For higher order folios, tail pages get a page count of zero. */
-	for (i = 1; i < nr_pages; i++)
+	for (unsigned int i = 1; i < nr_pages; i++)
 		set_page_count(page + i, 0);
 
 	if (order > 0)
_

Patches currently in -mm which might be from ptyadav@amazon.de are

maintainers-add-linux-mm-list-to-kexec-handover.patch
kho-initialize-tail-pages-for-higher-order-folios-properly.patch


                 reply	other threads:[~2025-06-20  3:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250620034553.7A237C4CEE3@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=bhe@redhat.com \
    --cc=changyuanl@google.com \
    --cc=graf@amazon.com \
    --cc=mm-commits@vger.kernel.org \
    --cc=pasha.tatashin@soleen.com \
    --cc=ptyadav@amazon.de \
    --cc=rppt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.