diff for duplicates of <20040417111754.GC28993@zax> diff --git a/a/1.txt b/N1/1.txt index d17caff..7a5fc1a 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -88,7 +88,7 @@ prepare_follow_huge_addr(). I'd prefer, say, in_hugepage_region(). > -struct vm_area_struct *hugepage_vma(struct mm_struct *mm, unsigned long addr) > -{ > - if (mm->used_hugetlb) { -> - if (REGION_NUMBER(addr) = REGION_HPAGE) { +> - if (REGION_NUMBER(addr) == REGION_HPAGE) { > - struct vm_area_struct *vma = find_vma(mm, addr); > - if (vma && is_vm_hugetlb_page(vma)) > - return vma; @@ -177,9 +177,9 @@ prepare_follow_huge_addr(). I'd prefer, say, in_hugepage_region(). > #ifdef __ASSEMBLY__ > @@ -123,6 +124,7 @@ > # define is_hugepage_only_range(addr, len) \ -> (REGION_NUMBER(addr) = REGION_HPAGE && \ -> REGION_NUMBER((addr)+(len)) = REGION_HPAGE) -> +# define prepare_follow_huge_addr(addr) (REGION_NUMBER(addr) = REGION_HPAGE) +> (REGION_NUMBER(addr) == REGION_HPAGE && \ +> REGION_NUMBER((addr)+(len)) == REGION_HPAGE) +> +# define prepare_follow_huge_addr(addr) (REGION_NUMBER(addr) == REGION_HPAGE) > extern unsigned int hpage_shift; > #endif > diff --git a/a/content_digest b/N1/content_digest index 9410fc0..bd972bd 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\0200404162214.i3GMEdF22343@unix-os.sc.intel.com\0" "From\0'David Gibson' <david@gibson.dropbear.id.au>\0" "Subject\0Re: Kill off hugepage_vma()\0" - "Date\0Sat, 17 Apr 2004 11:17:54 +0000\0" + "Date\0Sat, 17 Apr 2004 21:17:54 +1000\0" "To\0Chen" " Kenneth W <kenneth.w.chen@intel.com>\0" "Cc\0Andrew Morton <akpm@osdl.org>" @@ -100,7 +100,7 @@ "> -struct vm_area_struct *hugepage_vma(struct mm_struct *mm, unsigned long addr)\n" "> -{\n" "> -\tif (mm->used_hugetlb) {\n" - "> -\t\tif (REGION_NUMBER(addr) = REGION_HPAGE) {\n" + "> -\t\tif (REGION_NUMBER(addr) == REGION_HPAGE) {\n" "> -\t\t\tstruct vm_area_struct *vma = find_vma(mm, addr);\n" "> -\t\t\tif (vma && is_vm_hugetlb_page(vma))\n" "> -\t\t\t\treturn vma;\n" @@ -189,9 +189,9 @@ "> #ifdef __ASSEMBLY__\n" "> @@ -123,6 +124,7 @@\n" "> # define is_hugepage_only_range(addr, len)\t\t\\\n" - "> \t (REGION_NUMBER(addr) = REGION_HPAGE &&\t\\\n" - "> \t REGION_NUMBER((addr)+(len)) = REGION_HPAGE)\n" - "> +# define prepare_follow_huge_addr(addr)\t(REGION_NUMBER(addr) = REGION_HPAGE)\n" + "> \t (REGION_NUMBER(addr) == REGION_HPAGE &&\t\\\n" + "> \t REGION_NUMBER((addr)+(len)) == REGION_HPAGE)\n" + "> +# define prepare_follow_huge_addr(addr)\t(REGION_NUMBER(addr) == REGION_HPAGE)\n" "> extern unsigned int hpage_shift;\n" "> #endif\n" "> \n" @@ -265,4 +265,4 @@ "\t\t\t\t| wrong.\n" http://www.ozlabs.org/people/dgibson -3d5d2e8041f9e9a63c2fdccef82b5ed7719690a42d9b97fe28408ba9de360362 +89e5a9583ff42f39c3ea36d4c1146338b03a1ef47f641e5bfbb3d87e1c35a66e
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.