[folded-merged] mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage-fix.patch removed from -mm tree

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

 



Subject: [folded-merged] mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage-fix.patch removed from -mm tree
To: nasa4836@xxxxxxxxx,murzin.v@xxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Tue, 21 Jan 2014 15:29:36 -0800


The patch titled
     Subject: Re: mm/vmalloc: interchage the implementation of vmalloc_to_{pfn,page}
has been removed from the -mm tree.  Its filename was
     mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage-fix.patch

This patch was dropped because it was folded into mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage.patch

------------------------------------------------------
From: Jianyu Zhan <nasa4836@xxxxxxxxx>
Subject: Re: mm/vmalloc: interchage the implementation of vmalloc_to_{pfn,page}

I just sent the incorrect patch...

it should be
 -   page = pte_page(pte);
 +  pfn = pte_pfn(pte);;

Cc: Vladimir Murzin <murzin.v@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

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

diff -puN mm/vmalloc.c~mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage-fix mm/vmalloc.c
--- a/mm/vmalloc.c~mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage-fix
+++ a/mm/vmalloc.c
@@ -225,7 +225,7 @@ int is_vmalloc_or_module_addr(const void
 unsigned long vmalloc_to_pfn(const void *vmalloc_addr)
 {
 	unsigned long addr = (unsigned long) vmalloc_addr;
-	unsigned long pfn;
+	unsigned long pfn = 0;
 	pgd_t *pgd = pgd_offset_k(addr);
 
 	/*
@@ -244,7 +244,7 @@ unsigned long vmalloc_to_pfn(const void
 				ptep = pte_offset_map(pmd, addr);
 				pte = *ptep;
 				if (pte_present(pte))
-					pfn = pte_page(pte);
+					pfn = pte_pfn(pte);
 				pte_unmap(ptep);
 			}
 		}
_

Patches currently in -mm which might be from nasa4836@xxxxxxxxx are

mm-vmalloc-interchage-the-implementation-of-vmalloc_to_pfnpage.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux