aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorTony Solomonik <tony.solomonik@gmail.com>2024-02-02 14:17:23 +0200
committerJens Axboe <axboe@kernel.dk>2024-02-09 08:57:56 -0700
commit5f0d594c602f870e3a3872f7ea42bf846a1d26cf (patch)
tree5efd86c12d353c1d26b30944ce7fbc2768ecf169 /io_uring/opdef.c
parentio_uring: Simplify the allocation of slab caches (diff)
downloadwireguard-linux-5f0d594c602f870e3a3872f7ea42bf846a1d26cf.tar.xz
wireguard-linux-5f0d594c602f870e3a3872f7ea42bf846a1d26cf.zip
Add do_ftruncate that truncates a struct file
do_sys_ftruncate receives a file descriptor, fgets the struct file, and finally actually truncates the file. do_ftruncate allows for passing in a file directly, with the caller already holding a reference to it. Signed-off-by: Tony Solomonik <tony.solomonik@gmail.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Link: https://lore.kernel.org/r/20240202121724.17461-2-tony.solomonik@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
0 files changed, 0 insertions, 0 deletions