Commit 3337ab0
Andreas Gruenbacher
iov_iter: Introduce nofault flag to disable page faults
Introduce a new nofault flag to indicate to iov_iter_get_pages not to
fault in user pages.
This is implemented by passing the FOLL_NOFAULT flag to get_user_pages,
which causes get_user_pages to fail when it would otherwise fault in a
page. We'll use the ->nofault flag to prevent iomap_dio_rw from faulting
in pages when page faults are not allowed.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 55b8fe7 commit 3337ab0
2 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
| |||
1527 | 1528 | | |
1528 | 1529 | | |
1529 | 1530 | | |
| 1531 | + | |
1530 | 1532 | | |
1531 | 1533 | | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1532 | 1539 | | |
1533 | 1540 | | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
| 1541 | + | |
1537 | 1542 | | |
1538 | 1543 | | |
1539 | 1544 | | |
| |||
1649 | 1654 | | |
1650 | 1655 | | |
1651 | 1656 | | |
| 1657 | + | |
1652 | 1658 | | |
1653 | 1659 | | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
1654 | 1665 | | |
1655 | 1666 | | |
1656 | 1667 | | |
1657 | 1668 | | |
1658 | 1669 | | |
1659 | | - | |
1660 | | - | |
| 1670 | + | |
1661 | 1671 | | |
1662 | 1672 | | |
1663 | 1673 | | |
| |||
0 commit comments