mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
ANDROID: Make MGLRU aware of speculative faults
Bug: 228525049 Bug: 227651406 Change-Id: Ib3d45f74c5c23cbb1af7aaf95c90826baf406c7a Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
@@ -4892,6 +4892,10 @@ static inline void mm_account_fault(struct pt_regs *regs,
|
||||
else
|
||||
perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MIN, 1, regs, address);
|
||||
}
|
||||
|
||||
static void lru_gen_enter_fault(struct vm_area_struct *vma);
|
||||
static void lru_gen_exit_fault(void);
|
||||
|
||||
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
|
||||
|
||||
#ifndef CONFIG_ARCH_HAS_PTE_SPECIAL
|
||||
@@ -5083,7 +5087,9 @@ static vm_fault_t ___handle_speculative_fault(struct mm_struct *mm,
|
||||
}
|
||||
|
||||
mem_cgroup_enter_user_fault();
|
||||
lru_gen_enter_fault(vmf.vma);
|
||||
ret = handle_pte_fault(&vmf);
|
||||
lru_gen_exit_fault();
|
||||
mem_cgroup_exit_user_fault();
|
||||
|
||||
if (ret != VM_FAULT_RETRY) {
|
||||
|
||||
Reference in New Issue
Block a user