NFSv4/pnfs: Ensure we don't miss a file extension
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 6 Jul 2015 00:06:38 +0000 (20:06 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 22 Jul 2015 21:15:53 +0000 (17:15 -0400)
commit2b83d3de4c18af49800e0b26ae013db4fcf43a4a
treeb713bc1f4e0bd37ef74f05f131feac0a1f0f2845
parent3c38cbe2ade88240fabb585b408f779ad3b9a31b
NFSv4/pnfs: Ensure we don't miss a file extension

pNFS writes don't return attributes, however that doesn't mean that we
should ignore the fact that they may be extending the file. This patch
ensures that if a write is seen to extend the file, then we always set
an attribute barrier, and update the cached file size.

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