io_uring: add support for ftruncate
authorTony Solomonik <tony.solomonik@gmail.com>
Fri, 2 Feb 2024 12:17:24 +0000 (14:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Feb 2024 16:04:39 +0000 (09:04 -0700)
commitb4bb1900c12e6a0fe11ff51e1aa6eea19a4ad635
treeeb81db2cd90eb75485851716f918ac2568307e1e
parent5f0d594c602f870e3a3872f7ea42bf846a1d26cf
io_uring: add support for ftruncate

Adds support for doing truncate through io_uring, eliminating
the need for applications to roll their own thread pool or offload
mechanism to be able to do non-blocking truncates.

Signed-off-by: Tony Solomonik <tony.solomonik@gmail.com>
Link: https://lore.kernel.org/r/20240202121724.17461-3-tony.solomonik@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/Makefile
io_uring/opdef.c
io_uring/truncate.c [new file with mode: 0644]
io_uring/truncate.h [new file with mode: 0644]