]> git.baikalelectronics.ru Git - kernel.git/commit
mm: add page_check_address_transhuge() helper
authorVladimir Davydov <vdavydov@virtuozzo.com>
Sat, 16 Jan 2016 00:54:45 +0000 (16:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2016 01:56:32 +0000 (17:56 -0800)
commit8dc832d8a7946cc1b857d494391b2ba457b1f1b4
tree1dc712f15e259ba4ff9c0ec62134440b28e89666
parent467e103ef1787a8ec62e2895832feac2006681c1
mm: add page_check_address_transhuge() helper

page_referenced_one() and page_idle_clear_pte_refs_one() duplicate the
code for looking up pte of a (possibly transhuge) page.  Move this code
to a new helper function, page_check_address_transhuge(), and make the
above mentioned functions use it.

This is just a cleanup, no functional changes are intended.

Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/rmap.h
mm/page_idle.c
mm/rmap.c