lkml.org 
[lkml]   [2023]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 2/2] mm: multi-gen LRU: cgroup working set stats
On Wed, Dec 14, 2022 at 02:51:23PM -0800, Yuanchu Xie <yuanchu@google.com> wrote:
> +static int memory_page_idle_age_format(struct mem_cgroup *root,
> + struct seq_file *m)
> +{
> + struct mem_cgroup *memcg;
> + unsigned long *table;
[...]
> + table = kmalloc_array(PAGE_IDLE_AGE_NR_RANGES * nr_node_ids *
> + ANON_AND_FILE,
> + sizeof(*table), __GFP_ZERO | GFP_KERNEL);
> +
[...]
> + memory_page_idle_age_print(m, table);
> + return 0;

FTR, the table seems leaked here.


Michal
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2023-03-26 23:36    [W:0.101 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site