Commit 2985dae
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 <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Vlastimil BAbka <[email protected]>
Reviewed-by: Harry Yoo <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>1 parent 5de0afb commit 2985dae
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7385 | 7385 | | |
7386 | 7386 | | |
7387 | 7387 | | |
| 7388 | + | |
| 7389 | + | |
| 7390 | + | |
7388 | 7391 | | |
7389 | 7392 | | |
7390 | 7393 | | |
| |||
0 commit comments