Thread (10 messages) 10 messages, 5 authors, 2022-01-03

Re: [PATCH v2] memcg: add per-memcg vmalloc stat

From: Shakeel Butt <hidden>
Date: 2021-12-22 06:06:16
Also in: lkml

On Tue, Dec 21, 2021 at 9:50 PM Muchun Song [off-list ref] wrote:
On Wed, Dec 22, 2021 at 1:25 PM Shakeel Butt [off-list ref] wrote:
quoted
[...]
quoted
@@ -2626,6 +2627,9 @@ static void __vunmap(const void *addr, int deallocate_pages)
                unsigned int page_order = vm_area_page_order(area);
                int i;

+               mod_memcg_page_state(area->pages[0], MEMCG_VMALLOC,
+                                    -(int)area->nr_pages);
The cast can go away since the type of 3rd parameter of
mod_memcg_page_state() is int but not long. I suggest
to remove it. Anyway
Andrew, please remove this cast of the third param when you add this
patch in the mm tree.
Reviewed-by: Muchun Song <redacted>
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help