diff for duplicates of <20181011221357.1925.5661.stgit@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index 8b1d28f..03e3495 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -135,7 +135,7 @@ index e435223e2ddb..5987c859676b 100644 if (highest_memmap_pfn < end_pfn - 1) highest_memmap_pfn = end_pfn - 1; -+ if (context = MEMMAP_HOTPLUG) { ++ if (context == MEMMAP_HOTPLUG) { #ifdef CONFIG_ZONE_DEVICE - /* - * Honor reservation requested by the driver for this ZONE_DEVICE @@ -144,7 +144,7 @@ index e435223e2ddb..5987c859676b 100644 - * ZONE_DEVICE page initialization until after we have released - * the hotplug lock. - */ -- if (zone = ZONE_DEVICE) { +- if (zone == ZONE_DEVICE) { - if (!altmap) - return; + /* @@ -154,11 +154,11 @@ index e435223e2ddb..5987c859676b 100644 + * mapping. We will defer the ZONE_DEVICE page initialization + * until after we have released the hotplug lock. + */ -+ if (zone = ZONE_DEVICE) { ++ if (zone == ZONE_DEVICE) { + if (!altmap) + return; + -+ if (start_pfn = altmap->base_pfn) ++ if (start_pfn == altmap->base_pfn) + start_pfn += altmap->reserve; + end_pfn = altmap->base_pfn + + vmem_altmap_offset(altmap); @@ -172,7 +172,7 @@ index e435223e2ddb..5987c859676b 100644 + __memmap_init_hotplug(end_pfn - start_pfn, nid, zone, + start_pfn, NULL); -- if (start_pfn = altmap->base_pfn) +- if (start_pfn == altmap->base_pfn) - start_pfn += altmap->reserve; - end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); + return; @@ -186,7 +186,7 @@ index e435223e2ddb..5987c859676b 100644 * There can be holes in boot-time mem_map[]s handed to this * function. They do not exist on hotplugged memory. */ -- if (context = MEMMAP_EARLY) { +- if (context == MEMMAP_EARLY) { - if (!early_pfn_valid(pfn)) { - pfn = next_valid_pfn(pfn) - 1; - continue; diff --git a/a/content_digest b/N1/content_digest index 0df146a..7b5f170 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020181011221237.1925.85591.stgit@localhost.localdomain\0" "From\0Alexander Duyck <alexander.h.duyck@linux.intel.com>\0" "Subject\0[mm PATCH v2 5/6] mm: Move hot-plug specific memory init into separate functions and optimize\0" - "Date\0Thu, 11 Oct 2018 22:13:57 +0000\0" + "Date\0Thu, 11 Oct 2018 15:13:57 -0700\0" "To\0linux-mm@kvack.org" " akpm@linux-foundation.org\0" "Cc\0pavel.tatashin@microsoft.com" @@ -160,7 +160,7 @@ " \tif (highest_memmap_pfn < end_pfn - 1)\n" " \t\thighest_memmap_pfn = end_pfn - 1;\n" " \n" - "+\tif (context = MEMMAP_HOTPLUG) {\n" + "+\tif (context == MEMMAP_HOTPLUG) {\n" " #ifdef CONFIG_ZONE_DEVICE\n" "-\t/*\n" "-\t * Honor reservation requested by the driver for this ZONE_DEVICE\n" @@ -169,7 +169,7 @@ "-\t * ZONE_DEVICE page initialization until after we have released\n" "-\t * the hotplug lock.\n" "-\t */\n" - "-\tif (zone = ZONE_DEVICE) {\n" + "-\tif (zone == ZONE_DEVICE) {\n" "-\t\tif (!altmap)\n" "-\t\t\treturn;\n" "+\t\t/*\n" @@ -179,11 +179,11 @@ "+\t\t * mapping. We will defer the ZONE_DEVICE page initialization\n" "+\t\t * until after we have released the hotplug lock.\n" "+\t\t */\n" - "+\t\tif (zone = ZONE_DEVICE) {\n" + "+\t\tif (zone == ZONE_DEVICE) {\n" "+\t\t\tif (!altmap)\n" "+\t\t\t\treturn;\n" "+\n" - "+\t\t\tif (start_pfn = altmap->base_pfn)\n" + "+\t\t\tif (start_pfn == altmap->base_pfn)\n" "+\t\t\t\tstart_pfn += altmap->reserve;\n" "+\t\t\tend_pfn = altmap->base_pfn +\n" "+\t\t\t\t vmem_altmap_offset(altmap);\n" @@ -197,7 +197,7 @@ "+\t\t__memmap_init_hotplug(end_pfn - start_pfn, nid, zone,\n" "+\t\t\t\t start_pfn, NULL);\n" " \n" - "-\t\tif (start_pfn = altmap->base_pfn)\n" + "-\t\tif (start_pfn == altmap->base_pfn)\n" "-\t\t\tstart_pfn += altmap->reserve;\n" "-\t\tend_pfn = altmap->base_pfn + vmem_altmap_offset(altmap);\n" "+\t\treturn;\n" @@ -211,7 +211,7 @@ " \t\t * There can be holes in boot-time mem_map[]s handed to this\n" " \t\t * function. They do not exist on hotplugged memory.\n" " \t\t */\n" - "-\t\tif (context = MEMMAP_EARLY) {\n" + "-\t\tif (context == MEMMAP_EARLY) {\n" "-\t\t\tif (!early_pfn_valid(pfn)) {\n" "-\t\t\t\tpfn = next_valid_pfn(pfn) - 1;\n" "-\t\t\t\tcontinue;\n" @@ -299,4 +299,4 @@ " \tpr_info(\"%s initialised, %lu pages in %ums\\n\", dev_name(pgmap->dev),\n" " \t\tsize, jiffies_to_msecs(jiffies - start));" -c941126fbab2b6823e003e763b37b9e5d46d94f3baa44ee304818f23e0587cfa +1160a7f6b8de6cc1f080c3edb73b5cf75973c580f7bdbbc8900ca3890f8a0876
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.