Commit ce9d27c
xfs: replace zero range flush with folio batch
Now that the zero range pagecache flush is purely isolated to
providing zeroing correctness in this case, we can remove it and
replace it with the folio batch mechanism that is used for handling
unwritten extents.
This is still slightly odd in that XFS reports a hole vs. a mapping
that reflects the COW fork extents, but that has always been the
case in this situation and so a separate issue. We drop the iomap
warning that assumes the folio batch is always associated with
unwritten mappings, but this is mainly a development assertion as
otherwise the core iomap fbatch code doesn't care much about the
mapping type if it's handed the set of folios to process.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>1 parent c770f99 commit ce9d27c
2 files changed
Lines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1632 | 1632 | | |
1633 | 1633 | | |
1634 | 1634 | | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
1638 | | - | |
1639 | 1635 | | |
1640 | 1636 | | |
1641 | 1637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1781 | 1781 | | |
1782 | 1782 | | |
1783 | 1783 | | |
1784 | | - | |
1785 | 1784 | | |
1786 | 1785 | | |
1787 | 1786 | | |
| |||
1813 | 1812 | | |
1814 | 1813 | | |
1815 | 1814 | | |
1816 | | - | |
1817 | 1815 | | |
1818 | 1816 | | |
1819 | 1817 | | |
| |||
1866 | 1864 | | |
1867 | 1865 | | |
1868 | 1866 | | |
1869 | | - | |
1870 | | - | |
| 1867 | + | |
| 1868 | + | |
1871 | 1869 | | |
1872 | 1870 | | |
1873 | 1871 | | |
| |||
1889 | 1887 | | |
1890 | 1888 | | |
1891 | 1889 | | |
1892 | | - | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1902 | 1894 | | |
1903 | 1895 | | |
1904 | 1896 | | |
| |||
0 commit comments