All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail-fix.patch removed from -mm tree
@ 2024-05-08 17:23 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-05-08 17:23 UTC (permalink / raw)
  To: mm-commits, nao.horiguchi, linmiaohe, jane.chu, akpm, akpm


The quilt patch titled
     Subject: mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail-fix
has been removed from the -mm tree.  Its filename was
     mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail-fix.patch

This patch was dropped because it was folded into mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail.patch

------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail-fix
Date: Thu May  2 04:07:39 PM PDT 2024

update for folio conversions

Cc: Jane Chu <jane.chu@oracle.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/memory-failure.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- a/mm/memory-failure.c~mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail-fix
+++ a/mm/memory-failure.c
@@ -2170,16 +2170,15 @@ out:
  * election for MCE early killed will be honored.
  */
 static int kill_procs_now(struct page *p, unsigned long pfn, int flags,
-			struct page *hpage)
+			struct folio *folio)
 {
-	struct folio *folio = page_folio(hpage);
 	LIST_HEAD(tokill);
 	int res = -EHWPOISON;
 
 	/* deal with user pages only */
 	if (PageReserved(p) || PageSlab(p) || PageTable(p) || PageOffline(p))
 		res = -EBUSY;
-	if (!(PageLRU(hpage) || PageHuge(p)))
+	if (!(folio_test_lru(folio) || PageHuge(p)))
 		res = -EBUSY;
 
 	if (res == -EHWPOISON) {
@@ -2324,7 +2323,7 @@ try_again:
 		if (try_to_split_thp_page(p) < 0) {
 			if (flags & MF_ACTION_REQUIRED) {
 				pr_err("%#lx: thp split failed\n", pfn);
-				res = kill_procs_now(p, pfn, flags, hpage);
+				res = kill_procs_now(p, pfn, flags, folio);
 				goto unlock_mutex;
 			}
 			res = action_result(pfn, MF_MSG_UNSPLIT_THP, MF_IGNORED);
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail.patch
__mod_memcg_lruvec_state-enhance-diagnostics.patch
__mod_memcg_lruvec_state-enhance-diagnostics-fix.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-08 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 17:23 [folded-merged] mm-memory-failure-send-sigbus-in-the-event-of-thp-split-fail-fix.patch removed from -mm tree Andrew Morton

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.