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

This reverts commit 7a67b48b624b3f23cd4c7ee2ebfbba45d0b00f28.
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 19f11a21de
commit 6adfeeca58

View File

@@ -774,6 +774,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)