NFSv4.1/pNFS: Don't request a minimal read layout beyond the end of file
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 31 Aug 2015 09:05:47 +0000 (02:05 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 31 Aug 2015 09:05:47 +0000 (02:05 -0700)
commit2d89a1d3c9ff8ceb115f001e66cff9788338ca47
treec9e05f049190c054640b7c49695deef9c5d3cf5a
parent21b874c873b5019db8bb4b4f6aa929c4bac0a398
NFSv4.1/pNFS: Don't request a minimal read layout beyond the end of file

If we have a read layout, then sanity check the minimal layout length
so that it does not extend beyond the end of file.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c