Re: [PATCH v2] erofs: support direct IO for ondemand mode

2024-07-29 Thread Hongbo Li via Linux-erofs
On 2024/7/29 20:09, Jingbo Xu wrote: On 7/26/24 10:06 AM, Hongbo Li wrote: erofs over fscache cannot handle the direct read io. When the file is opened with O_DIRECT flag, -EINVAL will reback. We support the DIO in erofs over fscache by bypassing the erofs page cache and reading target data

Re: [PATCH v2] erofs: support direct IO for ondemand mode

2024-07-29 Thread Jingbo Xu
On 7/26/24 10:06 AM, Hongbo Li wrote: > erofs over fscache cannot handle the direct read io. When the file > is opened with O_DIRECT flag, -EINVAL will reback. We support the > DIO in erofs over fscache by bypassing the erofs page cache and > reading target data into ubuf from fscache's file dir

[PATCH v2] erofs: support direct IO for ondemand mode

2024-07-25 Thread Hongbo Li via Linux-erofs
erofs over fscache cannot handle the direct read io. When the file is opened with O_DIRECT flag, -EINVAL will reback. We support the DIO in erofs over fscache by bypassing the erofs page cache and reading target data into ubuf from fscache's file directly. The alignment for buffer memory, offset a