]> 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>
Wed, 19 Jun 2013 00:05:51 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:55 +0000 (17:12 +1000)
commit0df71be7e3c1de5e897fbb66ae10141d28b1a850
tree8e0061c421dd08be9e53dbfff48ed146d0a37997
parent112c67595ae3f3730cb40a9af37dab9b4bc2169c
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