]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ncpfs: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT
authorLibin <huawei.libin@huawei.com>
Wed, 19 Jun 2013 00:05:52 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:55 +0000 (17:12 +1000)
commitb8ed09b980fed951d06bc9fef0e63dd5943c448c
treef0a46f14cbeaed32950e4bb96c5df452332e62a7
parent0df71be7e3c1de5e897fbb66ae10141d28b1a850
ncpfs: 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>
fs/ncpfs/mmap.c