linux/fs/nfs/write.c
Trond Myklebust 9b6d61edd3 NFSv4/pnfs: Ensure we don't miss a file extension
commit 2b83d3de4c 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>
2015-09-29 19:26:07 +02:00

2023 lines
53 KiB