]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs/ioctl: store btrfs_uring_encoded_data in io_btrfs_cmd
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 8 Jul 2025 20:22:11 +0000 (14:22 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Jul 2025 18:34:56 +0000 (12:34 -0600)
commit9aad72b4e3f0233e747bb6b1ec05ea71365f4246
tree8c31fed9879e50f30f138e720fe847af398714d4
parent733c43f1df34f9185b945e6f12ac00c8556c6dfe
btrfs/ioctl: store btrfs_uring_encoded_data in io_btrfs_cmd

btrfs is the only user of struct io_uring_cmd_data and its op_data
field. Switch its ->uring_cmd() implementations to store the struct
btrfs_uring_encoded_data * in the struct io_btrfs_cmd, overlayed with
io_uring_cmd's pdu field. This avoids having to touch another cache line
to access the struct btrfs_uring_encoded_data *, and allows op_data and
struct io_uring_cmd_data to be removed.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Acked-by: David Sterba <dsterba@suse.com>
Link: https://lore.kernel.org/r/20250708202212.2851548-4-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/btrfs/ioctl.c