]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:07 +0000 (19:26 +0200)
commit9b6d61edd38cdedf81c1bbe79fc637c533df984a
tree2d325880c51b2297293175f9fef6b3d386fd8bcf
parentfe995635458e8967dedc75ed8d47fe208e77a9be
NFSv4/pnfs: Ensure we don't miss a file extension

commit 2b83d3de4c18af49800e0b26ae013db4fcf43a4a upstream.

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>
Cc: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/write.c