NFSv4.2: decode_read_plus_hole() needs to check the extent offset
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 8 Dec 2020 13:14:55 +0000 (08:14 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Dec 2020 11:51:07 +0000 (06:51 -0500)
commit82f98c8b116bd769a47688ca5227f94826ae8a2a
tree86354d160189f954db5923191adc0f505a78611b
parent5c4afe2ab624cb8156e987ff929e00632fb56aeb
NFSv4.2: decode_read_plus_hole() needs to check the extent offset

The server is allowed to return a hole extent with an offset that starts
before the offset supplied in the READ_PLUS argument. Ensure that we
support that case too.

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