diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-07-15 11:46:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-24 21:00:44 +0200 |
commit | 1c2da9e8839d6437b43f2c805411d1a0cbd70165 (patch) | |
tree | e8a1ce88ae5cef29db769d7ae71e983f5fe27ac0 /fs/io_uring.c | |
parent | io_uring: inline io_req_work_grab_env() (diff) | |
download | linux-1c2da9e8839d6437b43f2c805411d1a0cbd70165.tar.xz linux-1c2da9e8839d6437b43f2c805411d1a0cbd70165.zip |
io_uring: remove empty cleanup of OP_OPEN* reqs
A switch in __io_clean_op() doesn't have default, it's pointless to list
opcodes that doesn't do any cleanup. Remove IORING_OP_OPEN* from there.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index a06d5b9cc046..8d6f1c4e8dac 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -5473,9 +5473,6 @@ static void __io_clean_op(struct io_kiocb *req) if (req->flags & REQ_F_BUFFER_SELECTED) kfree(req->sr_msg.kbuf); break; - case IORING_OP_OPENAT: - case IORING_OP_OPENAT2: - break; case IORING_OP_SPLICE: case IORING_OP_TEE: io_put_file(req, req->splice.file_in, |