summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2015-08-22 06:40:00 +0800
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-25 14:40:06 -0400
commit5420401079e152ff68a8024f6a375804b1c21505 (patch)
tree9d466a89b5a741ac313de83a9399f5cd5c5e4a57 /fs/nfs
parent3976143b063e3c42fe5471d87860f6ae118e0eee (diff)
downloadop-kernel-dev-5420401079e152ff68a8024f6a375804b1c21505.zip
op-kernel-dev-5420401079e152ff68a8024f6a375804b1c21505.tar.gz
NFS41/flexfiles: zero out DS write wcc
We do not want to update inode attributes with DS values. Cc: stable@vger.kernel.org # v4.0+ Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/flexfilelayout/flexfilelayout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c
index 7e4cbdf..cc2c5f7 100644
--- a/fs/nfs/flexfilelayout/flexfilelayout.c
+++ b/fs/nfs/flexfilelayout/flexfilelayout.c
@@ -1218,6 +1218,8 @@ static int ff_layout_write_done_cb(struct rpc_task *task,
hdr->res.verf->committed == NFS_DATA_SYNC)
ff_layout_set_layoutcommit(hdr);
+ /* zero out fattr since we don't care DS attr at all */
+ hdr->fattr.valid = 0;
if (task->tk_status >= 0)
nfs_writeback_update_inode(hdr);
OpenPOWER on IntegriCloud