summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-07-07 20:11:58 +0300
committerJens Axboe <axboe@kernel.dk>2023-08-10 19:24:25 +0300
commit9f69a259576ad46e6a13812b2c272bc9a89f8e03 (patch)
tree30b09878e653fefe3de37009632af84a8ee7dc83 /io_uring
parent3aaf22b62a9270b90524cd257755b960461a7614 (diff)
downloadlinux-9f69a259576ad46e6a13812b2c272bc9a89f8e03.tar.xz
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>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/splice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/splice.c b/io_uring/splice.c
index 2a4bbb719531..7c4469e9540e 100644
--- a/io_uring/splice.c
+++ b/io_uring/splice.c
@@ -68,7 +68,7 @@ int io_tee(struct io_kiocb *req, unsigned int issue_flags)
ret = do_tee(in, out, sp->len, flags);
if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
- io_put_file(in);
+ fput(in);
done:
if (ret != sp->len)
req_set_fail(req);
@@ -112,7 +112,7 @@ int io_splice(struct io_kiocb *req, unsigned int issue_flags)
ret = do_splice(in, poff_in, out, poff_out, sp->len, flags);
if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
- io_put_file(in);
+ fput(in);
done:
if (ret != sp->len)
req_set_fail(req);