Skip to contentSkip to conversation

mm: use heap macro in init_node_heap

PATCH In review Wei Liu 3 participants 4 messages Mar 29, 2017 – Mar 30, 2017

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 mm: use heap macro in init_node_heap

... so that it is consistent with the rest of the file.

No functional change.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
 xen/common/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/page_alloc.c +1 -1
index 42c20cb201..d1294cba4d 100644
@@ -574,7 +574,7 @@ static unsigned long init_node_heap(int node, unsigned long mfn,
 
     for ( i = 0; i < NR_ZONES; i++ )
         for ( j = 0; j <= MAX_ORDER; j++ )
-            INIT_PAGE_LIST_HEAD(&(*_heap[node])[i][j]);
+            INIT_PAGE_LIST_HEAD(&(heap(node, i, j)));
 
     return needed;
 }
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw

xen/common/page_alloc.c static unsigned long init_node_heap(int node, unsigned long mfn, · line 577

Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 29.03.17 at 13:15, <[email protected]> wrote:
xen/common/page_alloc.c +1 -1
@@ -574,7 +574,7 @@ static unsigned long init_node_heap(int node, unsigned long mfn,
 
     for ( i = 0; i < NR_ZONES; i++ )
         for ( j = 0; j <= MAX_ORDER; j++ )
-            INIT_PAGE_LIST_HEAD(&(*_heap[node])[i][j]);
+            INIT_PAGE_LIST_HEAD(&(heap(node, i, j)));

With the now stray pair of parentheses removed,

You should have Cc-ed Julien, assuming you want to get this in now rather than after 4.9 was branched off.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#2 lore raw

Cc Julien

Quoted 11 lines · Jan Beulich

xen/common/page_alloc.c static unsigned long init_node_heap(int node, unsigned long mfn, · line 577

Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 29.03.17 at 13:15, <[email protected]> wrote:
xen/common/page_alloc.c +1 -1
@@ -574,7 +574,7 @@ static unsigned long init_node_heap(int node, unsigned long mfn,
 
     for ( i = 0; i < NR_ZONES; i++ )
         for ( j = 0; j <= MAX_ORDER; j++ )
-            INIT_PAGE_LIST_HEAD(&(*_heap[node])[i][j]);
+            INIT_PAGE_LIST_HEAD(&(heap(node, i, j)));

With the now stray pair of parentheses removed,

Quoted 7 lines

You should have Cc-ed Julien, assuming you want to get this in now rather than after 4.9 was branched off.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw

Hi,

Quoted 15 lines · Wei Liu

Cc Julien

Quoted 12 lines · Jan Beulich

xen/common/page_alloc.c static unsigned long init_node_heap(int node, unsigned long mfn, · line 577

Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 29.03.17 at 13:15, <[email protected]> wrote:
xen/common/page_alloc.c +1 -1
@@ -574,7 +574,7 @@ static unsigned long init_node_heap(int node, unsigned long mfn,
 
     for ( i = 0; i < NR_ZONES; i++ )
         for ( j = 0; j <= MAX_ORDER; j++ )
-            INIT_PAGE_LIST_HEAD(&(*_heap[node])[i][j]);
+            INIT_PAGE_LIST_HEAD(&(heap(node, i, j)));

With the now stray pair of parentheses removed,

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel