43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
From git-commits-head-owner@vger.kernel.org Tue Sep 26 20:23:25 2006
|
|
Date: Tue, 26 Sep 2006 15:59:56 GMT
|
|
Message-Id: <200609261559.k8QFxuHf003323@hera.kernel.org>
|
|
From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
|
|
To: git-commits-head@vger.kernel.org
|
|
Subject: [PATCH] mm: small cleanup of install_page()
|
|
|
|
commit e88dd6c11c5aef74d8b74a062767add53315533b
|
|
tree cf1b66d110e33ab4d6a22438dff4508dd785acd1
|
|
parent c1e6098b23bb46e2b488fe9a26f831f867157483
|
|
author Peter Zijlstra <a.p.zijlstra@chello.nl> 1159252259 -0700
|
|
committer Linus Torvalds <torvalds@g5.osdl.org> 1159285724 -0700
|
|
|
|
[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 <a.p.zijlstra@chello.nl>
|
|
Cc: Hugh Dickins <hugh@veritas.com>
|
|
Signed-off-by: Andrew Morton <akpm@osdl.org>
|
|
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
|
|
mm/fremap.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/mm/fremap.c b/mm/fremap.c
|
|
index 21b7d0c..aa30618 100644
|
|
--- a/mm/fremap.c
|
|
+++ b/mm/fremap.c
|
|
@@ -79,9 +79,9 @@ int install_page(struct mm_struct *mm, s
|
|
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;
|