aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2023-07-25 08:56:29 -0700
committerDarrick J. Wong <[email protected]>2023-07-25 08:56:29 -0700
commita67371b7aee931572eab313384e7fcd93255f6f8 (patch)
tree976b4a0fa2e9d6f6dd88a2a25567f5d52c5ff2ff /include/linux
parentd42bd17c6a20638ddf96862bfc0c47e481c28392 (diff)
parent4ce02c67972211be488408c275c8fbf19faf29b3 (diff)
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 <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/iomap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 80facb9c9e5b..fdc6e64f49d6 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -264,6 +264,7 @@ bool iomap_is_partially_uptodate(struct folio *, size_t from, size_t count);
struct folio *iomap_get_folio(struct iomap_iter *iter, loff_t pos, size_t len);
bool iomap_release_folio(struct folio *folio, gfp_t gfp_flags);
void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len);
+bool iomap_dirty_folio(struct address_space *mapping, struct folio *folio);
int iomap_file_unshare(struct inode *inode, loff_t pos, loff_t len,
const struct iomap_ops *ops);
int iomap_zero_range(struct inode *inode, loff_t pos, loff_t len,