diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-07 10:27:09 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-02-01 16:20:13 +0300 |
commit | 30deff8531f469453ccc0981f14eceb0a2ea68d6 (patch) | |
tree | 9a2aa22f3d893cc278b9e4be79ceebca95b94608 /fs/xfs | |
parent | 410bb2ce611133a11d4d11f0aef4c83f095c3200 (diff) | |
download | linux-30deff8531f469453ccc0981f14eceb0a2ea68d6.tar.xz |
iomap: map multiple blocks at a time
The ->map_blocks interface returns a valid range for writeback, but we
still call back into it for every block, which is a bit inefficient.
Change iomap_writepage_map to use the valid range in the map until the
end of the folio or the dirty range inside the folio instead of calling
back into every block.
Note that the range is not used over folio boundaries as we need to be
able to check the mapping sequence count under the folio lock.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231207072710.176093-14-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions