]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: remove do_sys_truncate
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Mar 2026 07:01:46 +0000 (08:01 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Mar 2026 11:41:58 +0000 (12:41 +0100)
commite8767a3134ca69a307b37f7f58ca088dbee6eb82
tree425259dd28393a196c0520d6f8750ba61c074182
parent0924f6b80d4ac8cc0460fc73de163b562127026d
fs: remove do_sys_truncate

do_sys_truncate ist only used to implement ksys_truncate and the native
truncate syscalls.  Merge do_sys_truncate into ksys_truncate and return
int from it as it only returns 0 or negative errnos.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260323070205.2939118-4-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/open.c
include/linux/syscalls.h