diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-03-23 08:01:45 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-23 12:41:57 +0100 |
| commit | 0924f6b80d4ac8cc0460fc73de163b562127026d (patch) | |
| tree | 9c1a710c4543950a351753814ba86169cc60d621 /io_uring | |
| parent | e43dce8a0bc09083ea1145a1a0c61d83cbe72d97 (diff) | |
fs: pass on FTRUNCATE_* flags to do_truncate
Pass the flags one level down to replace the somewhat confusing small
argument, and clean up do_truncate as a result.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260323070205.2939118-3-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'io_uring')
| -rw-r--r-- | io_uring/truncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/truncate.c b/io_uring/truncate.c index 487baf23b44e..c88d8bd8d20e 100644 --- a/io_uring/truncate.c +++ b/io_uring/truncate.c @@ -41,7 +41,7 @@ int io_ftruncate(struct io_kiocb *req, unsigned int issue_flags) WARN_ON_ONCE(issue_flags & IO_URING_F_NONBLOCK); - ret = do_ftruncate(req->file, ft->len, 1); + ret = do_ftruncate(req->file, ft->len, 0); io_req_set_res(req, ret, 0); return IOU_COMPLETE; |
