Merge tag 'iomap-per-block-dirty-tracking' of https://github.com/riteshharjani/linux...
authorDarrick J. Wong <djwong@kernel.org>
Tue, 25 Jul 2023 15:56:29 +0000 (08:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Jul 2023 15:56:29 +0000 (08:56 -0700)
commita67371b7aee931572eab313384e7fcd93255f6f8
tree976b4a0fa2e9d6f6dd88a2a25567f5d52c5ff2ff
parentd42bd17c6a20638ddf96862bfc0c47e481c28392
parent4ce02c67972211be488408c275c8fbf19faf29b3
Merge tag 'iomap-per-block-dirty-tracking' of https://github.com/riteshharjani/linux into iomap-6.6-merge

iomap: Add per-block dirty state tracking to iomap

iomap today only tracks per-block update state bitmap, this series extends
the support by adding per-block dirty state bitmap tracking to iomap buffered
I/O path. This helps in reducing the write amplification and improve
write performance for large folio writes and for platforms with higher
pagesize compared to blocksize.

We have seen ~83% performance improvement with these patches using
database benchmarking tests, with XFS on 64k pagesize.
fio benchmark (as shown in the last patch which adds dirty tracking
support) showed close to 16x performance improvement when tested with
64K pagesize on 4k blocksize XFS using nvme on Power.

* tag 'iomap-per-block-dirty-tracking' of https://github.com/riteshharjani/linux:
  iomap: Add per-block dirty state tracking to improve performance
  iomap: Allocate ifs in ->write_begin() early
  iomap: Refactor iomap_write_delalloc_punch() function out
  iomap: Use iomap_punch_t typedef
  iomap: Fix possible overflow condition in iomap_write_delalloc_scan
  iomap: Add some uptodate state handling helpers for ifs state bitmap
  iomap: Drop ifs argument from iomap_set_range_uptodate()
  iomap: Rename iomap_page to iomap_folio_state and others

[djwong: also yay to less write amplification!]

Signed-off-by: Darrick J. Wong <djwong@kernel.org>