Commit 60f7b35
committed
bpf: Use try_alloc_pages() to allocate pages for bpf needs.
JIRA: https://issues.redhat.com/browse/RHEL-78202
commit c9eb810
Author: Alexei Starovoitov <ast@kernel.org>
Date: Fri Feb 21 18:44:27 2025 -0800
bpf: Use try_alloc_pages() to allocate pages for bpf needs.
Use try_alloc_pages() and free_pages_nolock() for BPF needs
when context doesn't allow using normal alloc_pages.
This is a prerequisite for further work.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20250222024427.30294-7-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Gregory Bell <grbell@redhat.com>1 parent 7f8f18d commit 60f7b35
3 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2385 | 2385 | | |
2386 | 2386 | | |
2387 | 2387 | | |
2388 | | - | |
| 2388 | + | |
2389 | 2389 | | |
2390 | 2390 | | |
2391 | 2391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
469 | | - | |
| 468 | + | |
470 | 469 | | |
471 | 470 | | |
472 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
590 | 607 | | |
591 | 608 | | |
592 | 609 | | |
| |||
599 | 616 | | |
600 | 617 | | |
601 | 618 | | |
602 | | - | |
| 619 | + | |
603 | 620 | | |
604 | 621 | | |
605 | 622 | | |
606 | 623 | | |
607 | 624 | | |
608 | 625 | | |
609 | | - | |
| 626 | + | |
610 | 627 | | |
611 | 628 | | |
612 | 629 | | |
| |||
0 commit comments