pnfs/blocklayout: fix end calculation in pnfs_num_cont_bytes
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Nov 2014 21:47:02 +0000 (16:47 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 24 Nov 2014 22:00:41 +0000 (17:00 -0500)
commit6a74c0c9402b85647793da70edc9d6b097d54472
treeb44a19cb5bbf9f899d28f086ebb7c2604a017a2b
parent1a867a0898b2e366a1eb5b7fe21413a2b2b1629f
pnfs/blocklayout: fix end calculation in pnfs_num_cont_bytes

Use the number of pages in the pagecache mapping instead of the
number of pnfs requests which is only slightly related.

Reported-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/blocklayout.c