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