diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-11-05 15:09:32 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-05 15:09:32 +0300 |
| commit | ca3557a6868478268a6f8ab71268dd75eb47e875 (patch) | |
| tree | 46ccec7cee90d87b54c93d8c14c0fe7936a62269 /include/linux | |
| parent | 560507cbc151cf5c02d8831781e4912e64587298 (diff) | |
| parent | 8caec6c9fef70c0d0ce1bf38ad343e18e5e1f6a0 (diff) | |
| download | linux-ca3557a6868478268a6f8ab71268dd75eb47e875.tar.xz | |
Merge patch series "alloc misaligned vectors for zoned XFS v2"
Christoph Hellwig <hch@lst.de> says:
This series enables the new block layer support for misaligned
individual vectors for zoned XFS.
The first patch is the from Qu and supposedly already applied to
the vfs iomap 6.19 branch, but I can't find it there. The next
two are small fixups for it, and the last one makes use of this
new functionality in XFS.
* patches from https://patch.msgid.link/20251031131045.1613229-1-hch@lst.de:
xfs: support sub-block aligned vectors in always COW mode
iomap: add IOMAP_DIO_FSBLOCK_ALIGNED flag
Link: https://patch.msgid.link/20251031131045.1613229-1-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iomap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 65d123114883..8b1ac08c7474 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -553,6 +553,14 @@ struct iomap_dio_ops { */ #define IOMAP_DIO_PARTIAL (1 << 2) +/* + * Ensure each bio is aligned to fs block size. + * + * For filesystems which need to calculate/verify the checksum of each fs + * block. Otherwise they may not be able to handle unaligned bios. + */ +#define IOMAP_DIO_FSBLOCK_ALIGNED (1 << 3) + ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, const struct iomap_ops *ops, const struct iomap_dio_ops *dops, unsigned int dio_flags, void *private, size_t done_before); |
