diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-01-30 06:59:18 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-08 23:27:06 +0300 |
commit | 8435c6f380d622639d8acbc0af585d941396fa57 (patch) | |
tree | fd6ef35de4c6faf1fead3ba35d31027643f54e95 /arch/alpha | |
parent | 949249e25f1098315a971b70b893c1a2e2e4a819 (diff) | |
download | linux-8435c6f380d622639d8acbc0af585d941396fa57.tar.xz |
io_uring/kbuf: cleanup passing back cflags
We have various functions calculating the CQE cflags we need to pass
back, but it's all the same everywhere. Make a number of the putting
functions void, and just have the two main helps for this, io_put_kbuf()
and io_put_kbuf_comp() calculate the actual mask and pass it back.
While at it, cleanup how we put REQ_F_BUFFER_RING buffers. Before
this change, we would call into __io_put_kbuf() only to go right back
in to the header defined functions. As clearing this type of buffer
is just re-assigning the buf_index and incrementing the head, this
is very wasteful.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions