You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] mm: rmap optimisation
Optimise rmap functions by minimising atomic operations when we know there will be no concurrent modifications. Signed-off-by: Nick Piggin <npiggin@suse.de> Cc: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
224abf92b2
commit
9617d95e6e
@@ -324,7 +324,7 @@ void install_arg_page(struct vm_area_struct *vma,
|
||||
lru_cache_add_active(page);
|
||||
set_pte_at(mm, address, pte, pte_mkdirty(pte_mkwrite(mk_pte(
|
||||
page, vma->vm_page_prot))));
|
||||
page_add_anon_rmap(page, vma, address);
|
||||
page_add_new_anon_rmap(page, vma, address);
|
||||
pte_unmap_unlock(pte, ptl);
|
||||
|
||||
/* no need for flush_tlb */
|
||||
|
||||
Reference in New Issue
Block a user