]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT
authorLibin <huawei.libin@huawei.com>
Thu, 23 May 2013 00:37:10 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:00 +0000 (16:09 +1000)
commit3eb1a6cb4f6022aea98ac8b532939325e0dcdd2a
treee939f15456b65382577e9e99411640e81fa3359e
parentb0a8822268624cd44eee63526a10663f13a10d15
mm: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT

(*->vm_end - *->vm_start) >> PAGE_SHIFT operation is implemented
as a inline funcion vma_pages() in linux/mm.h, so using it.

Signed-off-by: Libin <huawei.libin@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c
mm/mmap.c