Re: [PATCH v4 1/4] fs: allow cross-FS copy_file_range for memory file with direct I/O

2025-06-03 Thread Amir Goldstein
On Tue, Jun 3, 2025 at 2:38 PM wangtao wrote: > > > > > -Original Message- > > From: Amir Goldstein > > Sent: Tuesday, June 3, 2025 6:57 PM > > To: wangtao > > Cc: sumit.sem...@linaro.org; christian.koe...@amd.com; > > kr

Re: [PATCH v4 1/4] fs: allow cross-FS copy_file_range for memory file with direct I/O

2025-06-03 Thread Amir Goldstein
irect I/O zero-copy implementation > > Suggested by: Christian König > Suggested by: Amir Goldstein > Signed-off-by: wangtao > --- > fs/read_write.c| 64 +- > include/linux/fs.h | 2 ++ > 2 files changed, 54 insertions(+), 12 dele

Re: [PATCH v3 1/4] fs: allow cross-FS copy_file_range for memory-backed files

2025-05-31 Thread Amir Goldstein
On Fri, May 30, 2025 at 12:40 PM wangtao wrote: > > Memory-backed files can optimize copy performance via > copy_file_range callbacks. Compared to mmap&read: reduces > GUP (get_user_pages) overhead; vs sendfile/splice: eliminates > one memory copy; supports dmabuf zero-copy implementation. > > Sig