mm: numa_memblks: remove local copy of numa_nodes_parsed
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
@@ -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
Quoted 9 lines · Sang-Heon Jeon
Since commit
a9bafc1832d2("mm:numa_memblks: remove redundantnuma_nodemask_from_meminfo()"), the copy ofnuma_nodes_parsedinnuma_alloc_distance()is the same asnuma_nodes_parsed.So remove the copy and use
numa_nodes_parseddirectly.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.