Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Gao Xiang
On 2025/1/20 14:16, Hongbo Li wrote: On 2025/1/20 11:46, Gao Xiang wrote: On 2025/1/20 11:43, Hongbo Li wrote: On 2025/1/20 11:10, Gao Xiang wrote: On 2025/1/20 11:02, Hongbo Li wrote: ...   } +static int erofs_fileio_scan_iter(struct erofs_fileio *io, struct kiocb *iocb, +  

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Hongbo Li via Linux-erofs
On 2025/1/20 11:46, Gao Xiang wrote: On 2025/1/20 11:43, Hongbo Li wrote: On 2025/1/20 11:10, Gao Xiang wrote: On 2025/1/20 11:02, Hongbo Li wrote: ...   } +static int erofs_fileio_scan_iter(struct erofs_fileio *io, struct kiocb *iocb, +  struct iov_iter *iter)

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Gao Xiang
On 2025/1/20 11:43, Hongbo Li wrote: On 2025/1/20 11:10, Gao Xiang wrote: On 2025/1/20 11:02, Hongbo Li wrote: ...   } +static int erofs_fileio_scan_iter(struct erofs_fileio *io, struct kiocb *iocb, +  struct iov_iter *iter) I wonder if it's possible to just extra

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Hongbo Li via Linux-erofs
On 2025/1/20 11:10, Gao Xiang wrote: On 2025/1/20 11:02, Hongbo Li wrote: ...   } +static int erofs_fileio_scan_iter(struct erofs_fileio *io, struct kiocb *iocb, +  struct iov_iter *iter) I wonder if it's possible to just extract a folio from `struct iov_iter` and

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Gao Xiang
On 2025/1/20 11:02, Hongbo Li wrote: ...   } +static int erofs_fileio_scan_iter(struct erofs_fileio *io, struct kiocb *iocb, +  struct iov_iter *iter) I wonder if it's possible to just extract a folio from `struct iov_iter` and reuse erofs_fileio_scan_folio() logic. Th

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Hongbo Li via Linux-erofs
On 2025/1/20 9:58, Gao Xiang wrote: Hi Hongbo, On 2025/1/15 15:09, Hongbo Li wrote: erofs has add file-backed mount support. In this scenario, only buffer io is allowed. So we enhance the io mode by implementing the direct io. Also, this can make the iov_iter (user buffer) interact with the

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-19 Thread Gao Xiang
Hi Hongbo, On 2025/1/15 15:09, Hongbo Li wrote: erofs has add file-backed mount support. In this scenario, only buffer io is allowed. So we enhance the io mode by implementing the direct io. Also, this can make the iov_iter (user buffer) interact with the backed file's page cache directly. Sign

[PATCH RFC] erofs: file-backed mount supports direct io

2025-01-14 Thread Hongbo Li via Linux-erofs
erofs has add file-backed mount support. In this scenario, only buffer io is allowed. So we enhance the io mode by implementing the direct io. Also, this can make the iov_iter (user buffer) interact with the backed file's page cache directly. Signed-off-by: Hongbo Li --- fs/erofs/data.c | 11

Re: [PATCH RFC] erofs: file-backed mount supports direct io

2025-01-14 Thread Hongbo Li via Linux-erofs
On 2025/1/15 15:09, Hongbo Li wrote: erofs has add file-backed mount support. In this scenario, only buffer io is allowed. So we enhance the io mode by implementing the direct io. Also, this can make the iov_iter (user buffer) interact with the backed file's page cache directly. Base on this,