mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
Like path_truncate, the file_truncate hook also restricts file truncation, but is called in the cases where truncation is attempted on an already-opened file. This is required in a subsequent commit to handle ftruncate() operations differently to truncate() operations. Acked-by: Tetsuo Handa <[email protected]> Acked-by: John Johansen <[email protected]> Acked-by: Paul Moore <[email protected]> Signed-off-by: Günther Noack <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mickaël Salaün <[email protected]>