mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 17:18:25 +02:00
struct iomap_ioend currently tracks outstanding buffered writes and has some really nice code in core iomap and XFS to merge contiguous I/Os an defer them to userspace for completion in a very efficient way. For zoned writes we'll also need a per-bio user context completion to record the written blocks, and the infrastructure for that would look basically like the ioend handling for buffered I/O. So instead of reinventing the wheel, reuse the existing infrastructure. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20250206064035.2323428-8-hch@lst.de Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
10 lines
275 B
C
10 lines
275 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _IOMAP_INTERNAL_H
|
|
#define _IOMAP_INTERNAL_H 1
|
|
|
|
#define IOEND_BATCH_SIZE 4096
|
|
|
|
u32 iomap_finish_ioend_buffered(struct iomap_ioend *ioend);
|
|
u32 iomap_finish_ioend_direct(struct iomap_ioend *ioend);
|
|
|
|
#endif /* _IOMAP_INTERNAL_H */
|