From 6adfeeca58537a5b60cfef51384ab3260bab73ba Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Tue, 18 Oct 2022 15:02:50 -0700 Subject: [PATCH] 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 Change-Id: Ib33a02757eaab60e829941ccfd0f9caa15991282 --- fs/ext4/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 441ef8a6a2a6..da93b001d4f2 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -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)