Commit 55b8fe7
Andreas Gruenbacher
gup: Introduce FOLL_NOFAULT flag to disable page faults
Introduce a new FOLL_NOFAULT flag that causes get_user_pages to return
-EFAULT when it would otherwise trigger a page fault. This is roughly
similar to FOLL_FAST_ONLY but available on all architectures, and less
fragile.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 4fdccaa commit 55b8fe7
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2851 | 2851 | | |
2852 | 2852 | | |
2853 | 2853 | | |
2854 | | - | |
| 2854 | + | |
| 2855 | + | |
2855 | 2856 | | |
2856 | 2857 | | |
2857 | 2858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
| 921 | + | |
| 922 | + | |
921 | 923 | | |
922 | 924 | | |
923 | 925 | | |
| |||
2843 | 2845 | | |
2844 | 2846 | | |
2845 | 2847 | | |
2846 | | - | |
| 2848 | + | |
2847 | 2849 | | |
2848 | 2850 | | |
2849 | 2851 | | |
| |||
0 commit comments