mm: introduce mm_find_pmd()
authorBob Liu <lliubbo@gmail.com>
Wed, 12 Dec 2012 00:00:37 +0000 (16:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:22 +0000 (17:22 -0800)
commit6219049ae1ce32b89236646cccaec2a5fc6c4fd2
tree551e8b1d53b8d237678c96cb9b442c746609cfcd
parent344aa35c27acdf70d3c67b5aa7cb6aa8585f80c1
mm: introduce mm_find_pmd()

Several place need to find the pmd by(mm_struct, address), so introduce a
function to simplify it.

[akpm@linux-foundation.org: fix warning]
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Ni zhan Chen <nizhan.chen@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
mm/internal.h
mm/ksm.c
mm/migrate.c
mm/rmap.c