fs: add a write stream field to the kiocb
authorChristoph Hellwig <hch@lst.de>
Tue, 6 May 2025 12:17:22 +0000 (17:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 13:46:43 +0000 (07:46 -0600)
Prepare for io_uring passthrough of write streams. The write stream
field in the kiocb structure fits into an existing 2-byte hole, so its
size is not changed.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20250506121732.8211-2-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h

index 016b0fe1536e3630eccb10df3f6f93393c97966b..d5988867fe3169177e74775255f0792fb9f1fa49 100644 (file)
@@ -408,6 +408,7 @@ struct kiocb {
        void                    *private;
        int                     ki_flags;
        u16                     ki_ioprio; /* See linux/ioprio.h */
+       u8                      ki_write_stream;
        union {
                /*
                 * Only used for async buffered reads, where it denotes the