Re: [PATCH] erofs: apply proper VMA alignment for memory mapped files on THP

2024-03-06 Thread Gao Xiang
On 2024/3/7 09:07, Chao Yu wrote: On 2024/3/6 14:51, Gao Xiang wrote: On 2024/3/6 13:31, Gao Xiang wrote: There are mainly two reasons that thp_get_unmapped_area() should be used for EROFS as other filesystems:   - It's needed to enable PMD mappings as a FSDAX filesystem, see     commit 7

Re: [PATCH] erofs: apply proper VMA alignment for memory mapped files on THP

2024-03-06 Thread Chao Yu
On 2024/3/6 14:51, Gao Xiang wrote: On 2024/3/6 13:31, Gao Xiang wrote: There are mainly two reasons that thp_get_unmapped_area() should be used for EROFS as other filesystems:   - It's needed to enable PMD mappings as a FSDAX filesystem, see     commit 74d2fad1334d ("thp, dax: add thp_get_un

Re: [PATCH] erofs: apply proper VMA alignment for memory mapped files on THP

2024-03-05 Thread Jingbo Xu
On 3/6/24 2:51 PM, Gao Xiang wrote: > > > On 2024/3/6 13:31, Gao Xiang wrote: >> There are mainly two reasons that thp_get_unmapped_area() should be >> used for EROFS as other filesystems: >> >>   - It's needed to enable PMD mappings as a FSDAX filesystem, see >>     commit 74d2fad1334d ("thp,

Re: [PATCH] erofs: apply proper VMA alignment for memory mapped files on THP

2024-03-05 Thread Gao Xiang
On 2024/3/6 13:31, Gao Xiang wrote: There are mainly two reasons that thp_get_unmapped_area() should be used for EROFS as other filesystems: - It's needed to enable PMD mappings as a FSDAX filesystem, see commit 74d2fad1334d ("thp, dax: add thp_get_unmapped_area for pmd mappings");

[PATCH] erofs: apply proper VMA alignment for memory mapped files on THP

2024-03-05 Thread Gao Xiang
There are mainly two reasons that thp_get_unmapped_area() should be used for EROFS as other filesystems: - It's needed to enable PMD mappings as a FSDAX filesystem, see commit 74d2fad1334d ("thp, dax: add thp_get_unmapped_area for pmd mappings"); - It's useful together with CONFIG_READ_ON