]> 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, 27 Jun 2013 23:51:20 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:26 +0000 (16:37 +1000)
commit525e423935b0c0fc9f2eee7f621989b3eada7b9c
tree50cf59a450f413aa5aca4dfa18618b24d8a52bd0
parentee9ce4cccbc62ed39a45751da28dd6cd727e6a10
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