]> err.no Git - linux-2.6/commit
[PATCH] mm: rmap.c cleanup
authorNikita Danilov <nikita@clusterfs.com>
Sun, 1 May 2005 15:58:36 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:36 +0000 (08:58 -0700)
commit81b4082dc7666e2bc5ec229d8e837f3bafb96883
treed37c73b9fa3d3d321d0997113c9170b52aeb10b6
parent119f657c72fc07d6fd28c61de59cfba1566970a9
[PATCH] mm: rmap.c cleanup

mm/rmap.c:page_referenced_one() and mm/rmap.c:try_to_unmap_one() contain
identical code that

 - takes mm->page_table_lock;

 - drills through page tables;

 - checks that correct pte is reached.

Coalesce this into page_check_address()

Signed-off-by: Nikita Danilov <nikita@clusterfs.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/rmap.c