pNFS/flexfiles: Check the layout segment range before doing I/O
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 23 Mar 2020 18:48:23 +0000 (14:48 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 27 Mar 2020 20:34:35 +0000 (16:34 -0400)
commite1e54ab710f8da922cd44651463bf8bb61114b5a
treebf98a9ce386ea6960ca2b65ff437f70e7b75908a
parent660d1eb22301c290945450414fb0be5ae25526f1
pNFS/flexfiles: Check the layout segment range before doing I/O

When starting to read or write with a layout segment, check that the
range matches our request.

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