Commit 05b5968
xfs: move xfs_buf_iowait out of (__)xfs_buf_submit
There is no good reason to pass a bool argument to wait for a buffer when
the callers that want that can easily just wait themselves.
This means the wait moves out of the extra hold of the buffer, but as the
callers of synchronous buffer I/O need to hold a reference anyway that is
perfectly fine.
Because all async buffer submitters ignore the error return value, and
the synchronous ones catch the error condition through b_error and
xfs_buf_iowait this also means the new xfs_buf_submit doesn't have to
return an error code.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Acked-by: Dave Chinner <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>1 parent 411ff3f commit 05b5968
1 file changed
+16
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 56 | + | |
| 57 | + | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
| |||
804 | 798 | | |
805 | 799 | | |
806 | 800 | | |
807 | | - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
| |||
980 | 977 | | |
981 | 978 | | |
982 | 979 | | |
983 | | - | |
984 | | - | |
| 980 | + | |
| 981 | + | |
985 | 982 | | |
986 | 983 | | |
987 | 984 | | |
| |||
1483 | 1480 | | |
1484 | 1481 | | |
1485 | 1482 | | |
1486 | | - | |
| 1483 | + | |
| 1484 | + | |
1487 | 1485 | | |
1488 | 1486 | | |
1489 | 1487 | | |
| |||
1698 | 1696 | | |
1699 | 1697 | | |
1700 | 1698 | | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1705 | 1702 | | |
1706 | | - | |
1707 | | - | |
1708 | 1703 | | |
1709 | 1704 | | |
1710 | 1705 | | |
| |||
1724 | 1719 | | |
1725 | 1720 | | |
1726 | 1721 | | |
1727 | | - | |
1728 | | - | |
| 1722 | + | |
1729 | 1723 | | |
1730 | | - | |
| 1724 | + | |
1731 | 1725 | | |
1732 | 1726 | | |
1733 | 1727 | | |
| |||
1765 | 1759 | | |
1766 | 1760 | | |
1767 | 1761 | | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | 1762 | | |
1772 | 1763 | | |
1773 | 1764 | | |
1774 | 1765 | | |
1775 | 1766 | | |
1776 | 1767 | | |
1777 | | - | |
1778 | 1768 | | |
1779 | 1769 | | |
1780 | 1770 | | |
| |||
2323 | 2313 | | |
2324 | 2314 | | |
2325 | 2315 | | |
2326 | | - | |
| 2316 | + | |
2327 | 2317 | | |
2328 | 2318 | | |
2329 | 2319 | | |
| |||
0 commit comments