Skip to contentSkip to conversation

+ mm-use-zone_is_initialized-instead-of-ifzone-wait_table.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Aug 12, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-use-zone_is_initialized-instead-of-ifzone-wait_table.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 12 Aug 2013 12:41:36 -0700

The patch titled

     Subject: mm: use zone_is_initialized() instead of if(zone->wait_table)

has been added to the -mm tree. Its filename is
mm-use-zone_is_initialized-instead-of-ifzone-wait_table.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-use-zone_is_initialized-instead-of-ifzone-wait_table.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-use-zone_is_initialized-instead-of-ifzone-wait_table.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Xishi Qiu <[email protected]>
Subject: mm: use zone_is_initialized() instead of if(zone->wait_table)

Use "zone_is_initialized()" instead of "if (zone->wait_table)". Simplify the code, no functional change.

---

 mm/memory_hotplug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-use-zone_is_initialized-instead-of-ifzone-wait_table +1 -1
diff -puN mm/memory_hotplug.c~mm-use-zone_is_initialized-instead-of-ifzone-wait_table mm/memory_hotplug.c
@@ -194,7 +194,7 @@ void register_page_bootmem_info_node(str
 
 	zone = &pgdat->node_zones[0];
 	for (; zone < pgdat->node_zones + MAX_NR_ZONES - 1; zone++) {
-		if (zone->wait_table) {
+		if (zone_is_initialized(zone)) {
 			nr_pages = zone->wait_table_hash_nr_entries
 				* sizeof(wait_queue_head_t);
 			nr_pages = PAGE_ALIGN(nr_pages) >> PAGE_SHIFT;

_

Patches currently in -mm which might be from [email protected] are

mm-hotplug-remove-unnecessary-bug_on-in-__offline_pages.patch mm-use-zone_end_pfn-instead-of-zone_start_pfnspanned_pages.patch mm-use-zone_is_empty-instead-of-ifzone-spanned_pages.patch mm-use-zone_is_initialized-instead-of-ifzone-wait_table.patch kexec-remove-unnecessary-return.patch