Commit ba13e23f authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

io_uring: kill not used needs_file_no_error

We have no request types left using needs_file_no_error, remove it.
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9ae1f8dd
...@@ -788,8 +788,6 @@ struct io_submit_state { ...@@ -788,8 +788,6 @@ struct io_submit_state {
struct io_op_def { struct io_op_def {
/* needs req->file assigned */ /* needs req->file assigned */
unsigned needs_file : 1; unsigned needs_file : 1;
/* don't fail if file grab fails */
unsigned needs_file_no_error : 1;
/* hash wq insertion if file is a regular file */ /* hash wq insertion if file is a regular file */
unsigned hash_reg_file : 1; unsigned hash_reg_file : 1;
/* unbound wq insertion if file is a non-regular file */ /* unbound wq insertion if file is a non-regular file */
...@@ -6896,8 +6894,7 @@ static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req, ...@@ -6896,8 +6894,7 @@ static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req,
bool fixed = req->flags & REQ_F_FIXED_FILE; bool fixed = req->flags & REQ_F_FIXED_FILE;
req->file = io_file_get(state, req, READ_ONCE(sqe->fd), fixed); req->file = io_file_get(state, req, READ_ONCE(sqe->fd), fixed);
if (unlikely(!req->file && if (unlikely(!req->file))
!io_op_defs[req->opcode].needs_file_no_error))
ret = -EBADF; ret = -EBADF;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment