aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2023-11-30 14:16:22 +0000
committerChristian Brauner <[email protected]>2023-12-01 10:39:50 +0000
commit488e8f685207e0758398963d6834f81e5e61c162 (patch)
tree12350afc957a74cb9861d88569fbf7a337c64179 /net/unix/sysctl_net_unix.c
parentfs: create {sb,file}_write_not_started() helpers (diff)
downloadkernel-488e8f685207e0758398963d6834f81e5e61c162.tar.gz
kernel-488e8f685207e0758398963d6834f81e5e61c162.zip
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 <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Jeff Layton <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions