Skip to content

Commit 9f69a25

Browse files
committed
io_uring/splice: use fput() directly
No point in using io_file_put() here, as we need to check if it's a fixed file in the caller anyway. Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3aaf22b commit 9f69a25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

io_uring/splice.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int io_tee(struct io_kiocb *req, unsigned int issue_flags)
6868
ret = do_tee(in, out, sp->len, flags);
6969

7070
if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
71-
io_put_file(in);
71+
fput(in);
7272
done:
7373
if (ret != sp->len)
7474
req_set_fail(req);
@@ -112,7 +112,7 @@ int io_splice(struct io_kiocb *req, unsigned int issue_flags)
112112
ret = do_splice(in, poff_in, out, poff_out, sp->len, flags);
113113

114114
if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
115-
io_put_file(in);
115+
fput(in);
116116
done:
117117
if (ret != sp->len)
118118
req_set_fail(req);

0 commit comments

Comments
 (0)