]> 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, 23 May 2013 00:37:10 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:01 +0000 (16:09 +1000)
commitb7163dba505d94653afb42d50099f652987030c7
treebe07b3700966ce3fb3a5b2d4722fd84d063dc899
parent3eb1a6cb4f6022aea98ac8b532939325e0dcdd2a
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