diff options
author | Kalesh Singh <kaleshsingh@google.com> | 2024-04-25 09:59:08 -0700 |
---|---|---|
committer | Kalesh Singh <kaleshsingh@google.com> | 2024-05-02 22:13:42 +0000 |
commit | 0c5b08de5ce6f27aa48771717827f6b1ea1f926c (patch) | |
tree | a396269cc83a9b468f7a46b0e93ff1ea89b3f1fe | |
parent | 836c41d3817f2a12bcc4b1f78291ddb98f8901dc (diff) | |
download | hikey-linaro-0c5b08de5ce6f27aa48771717827f6b1ea1f926c.tar.gz |
ANDROID: 16K: madvise_vma_pad_pages: Remove filemap_fault check
Some file systems like F2FS use a custom filemap_fault ops. Remove this
check, as checking vm_file is sufficient.
Bug: 330117029
Bug: 327600007
Bug: 330767927
Bug: 328266487
Bug: 329803029
Change-Id: Id6a584d934f06650c0a95afd1823669fc77ba2c2
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
-rw-r--r-- | mm/pgsize_migration.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/pgsize_migration.c b/mm/pgsize_migration.c index aecc109524c3..f148918ee8f7 100644 --- a/mm/pgsize_migration.c +++ b/mm/pgsize_migration.c @@ -195,7 +195,7 @@ static inline bool linker_ctx(void) * 2) The range ends at the end address of the VMA * 3) The range starts at an address greater than the start address of the VMA * 4) The number of the pages in the range does not exceed VM_TOTAL_PAD_PAGES. - * 5) The VMA is a regular file backed VMA (filemap_fault) + * 5) The VMA is a file backed VMA. * 6) The file backing the VMA is a shared library (*.so) * 7) The madvise was requested by bionic's dynamic linker. */ @@ -220,7 +220,7 @@ void madvise_vma_pad_pages(struct vm_area_struct *vma, return; /* Only handle this for file backed VMAs */ - if (!vma->vm_file || !vma->vm_ops || vma->vm_ops->fault != filemap_fault) + if (!vma->vm_file) return; /* Limit this to only shared libraries (*.so) */ |