diff options
author | Vladimir Davydov | 2016-01-16 01:54:45 +0100 |
---|---|---|
committer | Linus Torvalds | 2016-01-16 02:56:32 +0100 |
commit | 8749cfea11f3fffe8f7cad891470a77b36e0185f (patch) | |
tree | 1dc712f15e259ba4ff9c0ec62134440b28e89666 /drivers/block | |
parent | thp: increase split_huge_page() success rate (diff) | |
download | kernel-qcow2-linux-8749cfea11f3fffe8f7cad891470a77b36e0185f.tar.gz kernel-qcow2-linux-8749cfea11f3fffe8f7cad891470a77b36e0185f.tar.xz kernel-qcow2-linux-8749cfea11f3fffe8f7cad891470a77b36e0185f.zip |
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>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions