]> www.infradead.org Git - users/dwmw2/linux.git/commit
iomap: add a merge boundary flag
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:19:16 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:39 +0000 (13:38 -0800)
commit64c58d7c99343a910edf995e15d8037e19ec5777
treeceb79e0a35a59b85d1eea45bf0ed79f90e1a311b
parentdca94251f617942f05c7c6ff30a299f6b7dff770
iomap: add a merge boundary flag

File systems might have boundaries over which merges aren't possible.
In fact these are very common, although most of the time some kind of
header at the beginning of this region (e.g. XFS alloation groups, ext4
block groups) automatically create a merge barrier.  But if that is
not present, say for a device purely used for data we need to manually
communicate that to iomap.

Add a IOMAP_F_BOUNDARY flag to never merge I/O into a previous mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c
include/linux/iomap.h