Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: remove io_ctx_cqe32() helper

It's pretty pointless and only used for the tracing helper, get rid
of it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+2 -8
-6
include/linux/io_uring_types.h
··· 740 740 struct list_head list; 741 741 struct io_uring_cqe cqe; 742 742 }; 743 - 744 - static inline bool io_ctx_cqe32(struct io_ring_ctx *ctx) 745 - { 746 - return ctx->flags & IORING_SETUP_CQE32; 747 - } 748 - 749 743 #endif
+2 -2
include/trace/events/io_uring.h
··· 340 340 __entry->user_data = cqe->user_data; 341 341 __entry->res = cqe->res; 342 342 __entry->cflags = cqe->flags; 343 - __entry->extra1 = io_ctx_cqe32(ctx) ? cqe->big_cqe[0] : 0; 344 - __entry->extra2 = io_ctx_cqe32(ctx) ? cqe->big_cqe[1] : 0; 343 + __entry->extra1 = ctx->flags & IORING_SETUP_CQE32 ? cqe->big_cqe[0] : 0; 344 + __entry->extra2 = ctx->flags & IORING_SETUP_CQE32 ? cqe->big_cqe[1] : 0; 345 345 ), 346 346 347 347 TP_printk("ring %p, req %p, user_data 0x%llx, result %d, cflags 0x%x "