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
x-me...@vger.kernel.org; dri- > > de...@lists.freedesktop.org; linaro-mm-...@lists.linaro.org; linux- > > ker...@vger.kernel.org; linux-fsde...@vger.kernel.org; linux- > > m...@kvack.org; wangbintian(BintianWang) ; > > yipengxiang ; liulu 00013167 > > ; hanfeng 00

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

2025-06-03 Thread wangtao
; ker...@vger.kernel.org; linux-fsde...@vger.kernel.org; linux- > m...@kvack.org; wangbintian(BintianWang) ; > yipengxiang ; liulu 00013167 > ; hanfeng 00012985 > Subject: Re: [PATCH v4 1/4] fs: allow cross-FS copy_file_range for memory > file with direct I/O > > On Tue, Jun 3,

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 11:53 AM wangtao wrote: > > Memory files can optimize copy performance via copy_file_range callbacks: > -Compared to mmap&read: reduces GUP (get_user_pages) overhead > -Compared to sendfile/splice: eliminates one memory copy > -Supports dma-buf direct I/O zero-copy implement

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

2025-06-03 Thread wangtao
Memory files can optimize copy performance via copy_file_range callbacks: -Compared to mmap&read: reduces GUP (get_user_pages) overhead -Compared to sendfile/splice: eliminates one memory copy -Supports dma-buf direct I/O zero-copy implementation Suggested by: Christian König Suggested by: Amir G