mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Swap delay accounting, include lock_page() delays
The delay incurred in lock_page() should also be accounted in swap delay accounting Reported-by: Nick Piggin <[email protected]> Signed-off-by: Balbir Singh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9c8d6381dc
commit
20a1022d4a
1 changed files with 1 additions and 1 deletions
|
|
@ -2084,9 +2084,9 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
|
|||
count_vm_event(PGMAJFAULT);
|
||||
}
|
||||
|
||||
delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
|
||||
mark_page_accessed(page);
|
||||
lock_page(page);
|
||||
delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
|
||||
|
||||
/*
|
||||
* Back out if somebody else already faulted in this pte.
|
||||
|
|
|
|||
Loading…
Reference in a new issue