Thread (41 messages) 41 messages, 4 authors, 2021-02-08

Re: [PATCH 6/7] mm: memcontrol: switch to rstat

From: Johannes Weiner <hidden>
Date: 2021-02-04 16:29:36
Also in: linux-mm, lkml

On Tue, Feb 02, 2021 at 05:47:26PM -0800, Roman Gushchin wrote:
On Tue, Feb 02, 2021 at 01:47:45PM -0500, Johannes Weiner wrote:
quoted
 	for_each_node(node) {
 		struct mem_cgroup_per_node *pn = memcg->nodeinfo[node];
+		unsigned long stat[NR_VM_NODE_STAT_ITEMS] = {0, };
                                                              ^^
I'd drop the comma here. It seems that "{0}" version is way more popular
over the mm code and in the kernel in general.
Is there a downside to the comma? I'm finding more { 0, } than { 0 }
in mm code, and at least kernel-wide it seems both are acceptable
(although { 0 } is more popular overall).

I don't care much either way. I can change it in v2 if there is one.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help