]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: pass on FTRUNCATE_* flags to do_truncate
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Mar 2026 07:01:45 +0000 (08:01 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Mar 2026 11:41:57 +0000 (12:41 +0100)
commit0924f6b80d4ac8cc0460fc73de163b562127026d
tree9c1a710c4543950a351753814ba86169cc60d621
parente43dce8a0bc09083ea1145a1a0c61d83cbe72d97
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>
fs/internal.h
fs/open.c
io_uring/truncate.c