Thread (41 messages) 41 messages, 6 authors, 2021-03-08

Re: [v8 PATCH 07/13] mm: vmscan: add shrinker_info_protected() helper

From: Shakeel Butt <hidden>
Date: 2021-03-08 06:54:07
Also in: linux-fsdevel, lkml

On Tue, Feb 16, 2021 at 4:13 PM Yang Shi [off-list ref] wrote:
The shrinker_info is dereferenced in a couple of places via rcu_dereference_protected
with different calling conventions, for example, using mem_cgroup_nodeinfo helper
or dereferencing memcg->nodeinfo[nid]->shrinker_info.  And the later patch
will add more dereference places.

So extract the dereference into a helper to make the code more readable.  No
functional change.

Acked-by: Roman Gushchin <redacted>
Acked-by: Kirill Tkhai <redacted>
Acked-by: Vlastimil Babka <redacted>
Signed-off-by: Yang Shi <redacted>
Reviewed-by: Shakeel Butt <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help