Commit e8d78db
Alexei Starovoitov
mm, bpf: Use memcg in try_alloc_pages().
Unconditionally use __GFP_ACCOUNT in try_alloc_pages().
The caller is responsible to setup memcg correctly.
All BPF memory accounting is memcg based.
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20250222024427.30294-6-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 01d3722 commit e8d78db
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7190 | 7190 | | |
7191 | 7191 | | |
7192 | 7192 | | |
7193 | | - | |
| 7193 | + | |
| 7194 | + | |
7194 | 7195 | | |
7195 | 7196 | | |
7196 | 7197 | | |
| |||
7234 | 7235 | | |
7235 | 7236 | | |
7236 | 7237 | | |
| 7238 | + | |
| 7239 | + | |
| 7240 | + | |
| 7241 | + | |
| 7242 | + | |
7237 | 7243 | | |
7238 | 7244 | | |
7239 | 7245 | | |
| |||
0 commit comments