# Re: \[PATCH v4 1/3\] mm: memcg/slab: Properly set up gfp flags for objcg pointer array

- From: Roman Gushchin \<hidden\>
- Date: 2021-05-05 20:36:15 
- List: cgroups
- Page: https://ratatoskr.run/cgroups/2021/05/6359257
- Thread: https://ratatoskr.run/cgroups/2021/05/6359219/t.md

```text
On Wed, May 05, 2021 at 04:06:08PM -0400, Waiman Long wrote:
> Since the merging of the new slab memory controller in v5.9, the page
> structure may store a pointer to obj_cgroup pointer array for slab pages.
> Currently, only the __GFP_ACCOUNT bit is masked off. However, the array
> is not readily reclaimable and doesn't need to come from the DMA buffer.
> So those GFP bits should be masked off as well.
> 
> Do the flag bit clearing at memcg_alloc_page_obj_cgroups() to make sure
> that it is consistently applied no matter where it is called.
> 
> Fixes: 286e04b8ed7a ("mm: memcg/slab: allocate obj_cgroups for non-root slab pages")
> Signed-off-by: Waiman Long <redacted>
> Reviewed-by: Shakeel Butt <redacted>

Acked-by: Roman Gushchin <redacted>
```
