]> www.infradead.org Git - users/hch/xfs.git/commit
iomap: add a merge boundary flag
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Sep 2024 20:41:18 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 23:26:48 +0000 (16:26 -0700)
commit91b5d7a52dab63732aee451bba0db315ae9bd09b
tree34da3769ed9f70dd74b7e54b83d7739293f03cd0
parent03fc60bc5bda0b8d0a81daee5d196990b3d2e719
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