Skip to contentSkip to conversation

mm: numa_memblks: remove local copy of numa_nodes_parsed

PATCH Applied Sang-Heon Jeon 2 participants 2 messages Oct 14 – Nov 2

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: numa_memblks: remove local copy of numa_nodes_parsed

Since commit a9bafc1832d2 ("mm: numa_memblks: remove redundant numa_nodemask_from_meminfo()"), the copy of numa_nodes_parsed in numa_alloc_distance() is the same as numa_nodes_parsed.

So remove the copy and use numa_nodes_parsed directly.

No functional change.

---
 mm/numa_memblks.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
mm/numa_memblks.c +1 -4
index be6e7346f6c7..1ea6871c0eb5 100644
@@ -36,14 +36,11 @@ void __init numa_reset_distance(void)
 
 static int __init numa_alloc_distance(void)
 {
-	nodemask_t nodes_parsed;
 	size_t size;
 	int i, j, cnt = 0;
 
 	/* size the new table and allocate it */
-	nodes_parsed = numa_nodes_parsed;
-
-	for_each_node_mask(i, nodes_parsed)
+	for_each_node_mask(i, numa_nodes_parsed)
 		cnt = i;
 	cnt++;
 	size = cnt * cnt * sizeof(numa_distance[0]);

base-commit: 5728d3523f12826a2b180c1c5738f74e33197e14

Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Sang-Heon Jeon

Since commit a9bafc1832d2 ("mm: numa_memblks: remove redundant numa_nodemask_from_meminfo()"), the copy of numa_nodes_parsed in numa_alloc_distance() is the same as numa_nodes_parsed.

So remove the copy and use numa_nodes_parsed directly.

No functional change.

[...]

Applied to for-next branch of memblock.git tree, thanks!

[1/1] mm: numa_memblks: remove local copy of numa_nodes_parsed

      commit: dd304f239824e4056e89a7fda9d7f3aa87f4d523

tree: https://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock
branch: for-next

--
Sincerely yours,
Mike.