[folded-merged] mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3
has been removed from the -mm tree.  Its filename was
     mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch

This patch was dropped because it was folded into mm-debug-use-valid-physical-memory-for-pmd-pud-tests.patch

------------------------------------------------------
From: Frank van der Linden <fvdl@xxxxxxxxxx>
Subject: mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3
Date: Tue, 10 Jan 2023 18:12:08 +0000

Link: https://lkml.kernel.org/r/20230110181208.1633879-1-fvdl@xxxxxxxxxx
Fixes: 399145f9eb6c ("mm/debug: add tests validating architecture page table helpers")
Signed-off-by: Frank van der Linden <fvdl@xxxxxxxxxx>
Cc: Anshuman Khandual <anshuman.khandual@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/mm/debug_vm_pgtable.c~mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3
+++ a/mm/debug_vm_pgtable.c
@@ -1089,8 +1089,8 @@ debug_vm_pgtable_alloc_huge_page(struct
  * it's not used on x86.
  */
 static void  __init phys_align_check(phys_addr_t pstart,
-	phys_addr_t pend, unsigned long psize, phys_addr_t *physp,
-	unsigned long *alignp)
+				     phys_addr_t pend, unsigned long psize,
+				     phys_addr_t *physp, unsigned long *alignp)
 {
 	phys_addr_t aligned_start, aligned_end;
 
@@ -1133,20 +1133,19 @@ static void __init init_fixed_pfns(struc
 	for_each_mem_range(idx, &pstart, &pend) {
 		/* First check for a PUD-aligned area */
 		phys_align_check(pstart, pend, PUD_SIZE, &phys,
-				&args->fixed_alignment);
+				 &args->fixed_alignment);
 
 		/* If a PUD-aligned area is found, we're done */
-		if (args->fixed_alignment >= PUD_SIZE)
+		if (args->fixed_alignment == PUD_SIZE)
 			break;
 
 		/*
 		 * If no PMD-aligned area found yet, check for one,
 		 * but continue the loop to look for a PUD-aligned area.
 		 */
-		if (args->fixed_alignment < PMD_SIZE) {
+		if (args->fixed_alignment < PMD_SIZE)
 			phys_align_check(pstart, pend, PMD_SIZE, &phys,
-					&args->fixed_alignment);
-		}
+					 &args->fixed_alignment);
 	}
 
 	args->fixed_pgd_pfn = __phys_to_pfn(phys & PGDIR_MASK);
_

Patches currently in -mm which might be from fvdl@xxxxxxxxxx are

mm-debug-use-valid-physical-memory-for-pmd-pud-tests.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux