On Mon, Jan 29, 2024 at 05:15:06PM +0200, Tony Solomonik wrote: > 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@xxxxxxxxx> Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>