The series consists of four patches: - Add a new do_ftruncate() helper that operates directly on a struct file, allowing in-kernel callers to truncate files without going through file descriptor based interfaces. - Export do_ftruncate() so it can be used by other kernel subsystems. - Revert the recently introduced vfs_truncate2() helper, which becomes redundant after exporting do_ftruncate() and adds unnecessary API surface. - Fix dm-ploop target constructor logic to avoid preallocating clusters when the table is created in read-only mode. Userspace may still pass the optional fallo_new_clu argument, but preallocation must be skipped for read-only ploop devices.
https://virtuozzo.atlassian.net/browse/VSTOR-123292 Signed-off-by: Vasileios Almpanis <[email protected]> Tony Solomonik (1): Add do_ftruncate that truncates a struct file Vasileios Almpanis (3): fs: Export do_ftruncate Revert "fs: Introduce vfs_truncate2() with file argument" dm-ploop: dont preallocate clusters for read only table drivers/md/dm-ploop-map.c | 2 +- drivers/md/dm-ploop-target.c | 2 +- drivers/md/dm-qcow2-map.c | 2 +- fs/internal.h | 1 + fs/open.c | 60 +++++++++++++++++++----------------- include/linux/fs.h | 7 ++--- kernel/trace/bpf_trace.c | 3 +- 7 files changed, 40 insertions(+), 37 deletions(-) -- 2.43.0 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
