Commit a1d98e4
mm/filemap: unify dropbehind flag testing and clearing
The read and write side does this a bit differently, unify it such that
the _{read,write} helpers check the bit before locking, and the generic
handler is in charge of clearing the bit and invalidating, once under
the folio lock.
Signed-off-by: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Christian Brauner <[email protected]>1 parent 1da7a06 commit a1d98e4
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1595 | 1595 | | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | | - | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
1599 | 1603 | | |
1600 | 1604 | | |
1601 | 1605 | | |
| |||
1606 | 1610 | | |
1607 | 1611 | | |
1608 | 1612 | | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
1609 | 1616 | | |
1610 | 1617 | | |
1611 | 1618 | | |
| |||
1629 | 1636 | | |
1630 | 1637 | | |
1631 | 1638 | | |
1632 | | - | |
1633 | | - | |
1634 | 1639 | | |
1635 | 1640 | | |
1636 | 1641 | | |
| |||
1652 | 1657 | | |
1653 | 1658 | | |
1654 | 1659 | | |
1655 | | - | |
1656 | | - | |
1657 | 1660 | | |
1658 | 1661 | | |
1659 | | - | |
1660 | 1662 | | |
1661 | | - | |
1662 | | - | |
| 1663 | + | |
| 1664 | + | |
1663 | 1665 | | |
1664 | 1666 | | |
1665 | 1667 | | |
| |||
2651 | 2653 | | |
2652 | 2654 | | |
2653 | 2655 | | |
2654 | | - | |
2655 | | - | |
| 2656 | + | |
2656 | 2657 | | |
2657 | 2658 | | |
2658 | 2659 | | |
| |||
0 commit comments