Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e89b2b7f authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by Vinayak Menon
Browse files

ANDROID: GKI: mm: add struct vm_fault fields for SPECULATIVE_PAGE_FAULTS



Two new fields in the struct vm_fault can't easily be excluded using
CONFIG_SPECULATIVE_PAGE_FAULTS. Add them as padding to reduce the
ABI diff between vendors which use SPECULATIVE_PAGE_FAULTS and ACK. This
allows vendors to pick the SPECULATIVE_PAGE_FAULTS feature and still be
ABI compatible with ACK.

Bug: 153715905
Test: build
Signed-off-by: default avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
(cherry picked from commit 47e3eb155848872a13ab6ef73a4d0eecac36ce66)
[surenb: kept only struct vm_fault changes and dropped the rest]
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: I08dbe38f37fa3e8a0f96f71cb6b2dd8737221da5
Git-commit: a1db93d3a956eae02646e3269f5bb6f3c6fdc7c9
Git-Repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: default avatarMukesh Ojha <mojha@codeaurora.org>
parent 6b2f5048
Loading
Loading
Loading
Loading
+18230 −18067

File changed.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -451,6 +451,8 @@ struct vm_fault {
					 * page table to avoid allocation from
					 * atomic context.
					 */
	unsigned long vma_flags;	/* Speculative Page Fault field */
	pgprot_t vma_page_prot;		/* Speculative Page Fault field */
};

/* page entry size for vm->huge_fault() */