Commit 9c44f82
committed
mm/page_alloc: Fix try_alloc_pages
JIRA: https://issues.redhat.com/browse/RHEL-78202
commit 2985dae
Author: Alexei Starovoitov <ast@kernel.org>
Date: Mon Mar 31 20:23:36 2025 -0700
mm/page_alloc: Fix try_alloc_pages
Fix an obvious bug. try_alloc_pages() should set_page_refcounted.
[ Not so obvious: it was probably correct at the time it was written but
was at some point then rebased on top of v6.14-rc1.
And at that point there was a semantic conflict with commit
efabfe1 ("mm/page_alloc: move set_page_refcounted() to callers
of get_page_from_freelist()") and became buggy.
- Linus ]
Fixes: 97769a5 ("mm, bpf: Introduce try_alloc_pages() for opportunistic page allocation")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil BAbka <vbabka@suse.cz>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Gregory Bell <grbell@redhat.com>1 parent 7eb97da commit 9c44f82
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7224 | 7224 | | |
7225 | 7225 | | |
7226 | 7226 | | |
| 7227 | + | |
| 7228 | + | |
| 7229 | + | |
7227 | 7230 | | |
7228 | 7231 | | |
7229 | 7232 | | |
| |||
0 commit comments