1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-13 10:05:39 +00:00
Amir Goldstein 488e8f6852 fs: fork splice_file_range() from do_splice_direct()
In preparation of calling do_splice_direct() without file_start_write()
held, create a new helper splice_file_range(), to be called from context
of ->copy_file_range() methods instead of do_splice_direct().

Currently, the only difference is that splice_file_range() does not take
flags argument and that it asserts that file_start_write() is held, but
we factor out a common helper do_splice_direct_actor() that will be used
later.

Use the new helper from __ceph_copy_file_range(), that was incorrectly
passing to do_splice_direct() the copy flags argument as splice flags.
The value of copy flags in ceph is always 0, so it is a smenatic bug fix.

Move the declaration of both helpers to linux/splice.h.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20231130141624.3338942-2-amir73il@gmail.com
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-12-01 11:39:50 +01:00
..
2023-11-10 09:52:56 -08:00
2023-10-24 13:08:14 -07:00
2023-11-01 14:46:51 -10:00
2023-11-04 10:22:52 +01:00
2023-11-04 16:25:36 -10:00
2023-11-02 14:40:51 -10:00
2023-11-01 14:46:51 -10:00
2023-11-10 13:54:58 +00:00
2023-11-08 13:39:16 -08:00
2023-11-01 22:33:53 -07:00
2023-10-30 21:48:22 -04:00
2023-11-03 15:44:25 -10:00
2023-10-23 11:32:25 +02:00
2023-11-01 09:34:55 -10:00
2023-10-30 20:13:17 -10:00
2023-11-07 12:11:26 -08:00
2023-10-16 21:05:33 -07:00
2023-10-25 20:19:00 +02:00
2023-10-26 20:27:58 -07:00
2023-10-30 18:01:41 -10:00
2023-11-01 11:25:08 -10:00
2023-11-09 13:37:28 -08:00
2023-10-18 14:43:21 -07:00
2023-10-16 12:44:06 -04:00
2023-10-16 12:44:06 -04:00
2023-10-18 10:01:33 +02:00
2023-11-01 21:09:37 -10:00
2023-10-27 10:51:41 +01:00
2023-10-30 15:40:57 -10:00
2023-10-30 13:20:02 -10:00
2023-10-18 14:34:16 -07:00
2023-11-02 14:05:18 -10:00
2023-11-02 14:05:18 -10:00
2023-11-10 09:20:55 +01:00
2023-10-30 09:24:21 -10:00
2023-11-04 15:58:13 -10:00
2023-11-01 10:02:18 +00:00
2023-10-18 14:43:21 -07:00
2023-11-01 15:28:33 -10:00
2023-11-03 09:16:42 +00:00
2023-10-18 14:43:21 -07:00
2023-11-03 07:41:18 -10:00
2023-10-27 18:04:28 +08:00
2023-10-18 14:34:18 -07:00