]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse-uring: use named constants for io-uring iovec indices
authorJoanne Koong <joannelkoong@gmail.com>
Fri, 12 Jun 2026 21:05:09 +0000 (14:05 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 15 Jun 2026 12:06:21 +0000 (14:06 +0200)
commit8bbb2ad1f687633a991839bd3efae04ccfb29e19
tree40ea6f6f6e287bc2b7b8e946609d8982a6fcd6c9
parentc0f9203732fc70de8d20697270bfe405481eac14
fuse-uring: use named constants for io-uring iovec indices

Replace magic indices 0 and 1 for the iovec array with named constants
FUSE_URING_IOV_HEADERS and FUSE_URING_IOV_PAYLOAD. This makes the usages
self-documenting and prepares for buffer ring support which will also
reference these iovec slots by index.

Reviewed-by: Bernd Schubert <bernd@bsbernd.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Baokun Li <libaokun@linux.alibaba.com>
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev_uring.c