Revert "Revert "BACKPORT: FROMLIST: ext4: implement speculative fault handling""

This reverts commit 7a67b48b62.
The original commit was reverted due to the issue in speculative
handling of file-backed pages. Now that the fix is implemented by
disabling interrupts when walking the page tables this functionality
can be re-enabled.

Bug: 245389404
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ib33a02757eaab60e829941ccfd0f9caa15991282
This commit is contained in:
Suren Baghdasaryan
2022-10-18 15:02:50 -07:00
parent 365ffc56b4
commit 20af947ec9

View File

@@ -763,6 +763,7 @@ static const struct vm_operations_struct ext4_file_vm_ops = {
.fault = filemap_fault,
.map_pages = filemap_map_pages,
.page_mkwrite = ext4_page_mkwrite,
.speculative = true,
};
static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)