diff options
author | Tony Solomonik <tony.solomonik@gmail.com> | 2024-02-02 15:17:23 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-09 18:57:56 +0300 |
commit | 5f0d594c602f870e3a3872f7ea42bf846a1d26cf (patch) | |
tree | 5efd86c12d353c1d26b30944ce7fbc2768ecf169 /io_uring | |
parent | a6e959bd3d6bfe8a3daeeacb714a299b9094a6cb (diff) | |
download | linux-5f0d594c602f870e3a3872f7ea42bf846a1d26cf.tar.xz |
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')
0 files changed, 0 insertions, 0 deletions