mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] mm: small cleanup of install_page()
Smallish cleanup to install_page(), could save a memory read (haven't checked the asm output) and sure looks nicer. Signed-off-by: Peter Zijlstra <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c1e6098b23
commit
e88dd6c11c
1 changed files with 2 additions and 2 deletions
|
|
@ -79,9 +79,9 @@ int install_page(struct mm_struct *mm, struct vm_area_struct *vma,
|
|||
inc_mm_counter(mm, file_rss);
|
||||
|
||||
flush_icache_page(vma, page);
|
||||
set_pte_at(mm, addr, pte, mk_pte(page, prot));
|
||||
pte_val = mk_pte(page, prot);
|
||||
set_pte_at(mm, addr, pte, pte_val);
|
||||
page_add_file_rmap(page);
|
||||
pte_val = *pte;
|
||||
update_mmu_cache(vma, addr, pte_val);
|
||||
lazy_mmu_prot_update(pte_val);
|
||||
err = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue