Alexei Starovoitov 2985dae1e5 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
  efabfe1420f5 ("mm/page_alloc: move set_page_refcounted() to callers
  of get_page_from_freelist()") and became buggy.
							- Linus ]

Fixes: 97769a53f117 ("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>
2025-04-02 09:34:31 -07:00
..
2025-03-17 22:07:05 -07:00
2024-11-03 01:28:06 -05:00
2025-03-17 22:06:39 -07:00
2025-04-01 19:35:19 -07:00
2025-03-17 22:06:39 -07:00
2025-01-13 22:40:51 -08:00
2025-01-27 19:25:45 -05:00
2025-03-25 10:54:15 -07:00
2025-03-26 21:02:05 -07:00
2025-03-16 22:06:21 -07:00
2025-03-16 22:06:21 -07:00