On Thu, 28 Feb 2019 11:30:17 -0500 Johannes Weiner wrote:
> Instead of adding up the node counters, use memcg_page_state() to get
> the memcg state directly. This is a bit cheaper and more stream-lined.
>
> ...
>
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -746,10 +746,13 @@ static
Instead of adding up the node counters, use memcg_page_state() to get
the memcg state directly. This is a bit cheaper and more stream-lined.
Signed-off-by: Johannes Weiner
---
mm/memcontrol.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c
Instead of adding up the node counters, use memcg_page_state() to get
the memcg state directly. This is a bit cheaper and more stream-lined.
Signed-off-by: Johannes Weiner
---
mm/memcontrol.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c
3 matches
Mail list logo