Amir Goldstein 269aed7014 fs: move file_start_write() into vfs_iter_write()
All the callers of vfs_iter_write() call file_start_write() just before
calling vfs_iter_write() except for target_core_file's fd_do_rw().

Move file_start_write() from the callers into vfs_iter_write().
fd_do_rw() calls vfs_iter_write() with a non-regular file, so
file_start_write() is a no-op.

This is needed for fanotify "pre content" events.

Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20231122122715.2561213-11-amir73il@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-11-24 10:09:51 +01:00
..
2023-08-29 17:45:22 -04:00
2023-11-07 12:11:26 -08:00
2023-03-10 09:38:47 -05:00
2021-10-02 15:51:10 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:21:40 -08:00
2023-10-30 10:12:29 -10:00
2023-10-30 10:12:29 -10:00
2023-10-16 12:44:37 -04:00
2023-10-30 10:12:29 -10:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:14 -04:00
2023-10-16 12:44:14 -04:00
2023-10-16 12:44:09 -04:00