]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: extract io_put_kbuf() helper
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jul 2020 20:28:04 +0000 (23:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 19:00:45 +0000 (13:00 -0600)
commitb48585dd018e87c4cbf83c9439e66ca9ab470610
treef06f788cbb191442aef0ebdc713297f70d4f96d5
parentb6d0f5cbd93c79d2fbe6dc1775e421ba0ff5813c
io_uring: extract io_put_kbuf() helper

Extract a common helper for cleaning up a selected buffer, this will be
used shortly. By the way, correct cflags types to unsigned and, as kbufs
are anyway tracked by a flag, remove useless zeroing req->rw.addr.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c