Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54204010 authored by Peng Tao's avatar Peng Tao Committed by Trond Myklebust
Browse files

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: default avatarPeng Tao <tao.peng@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 3976143b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1218,6 +1218,8 @@ static int ff_layout_write_done_cb(struct rpc_task *task,
	    hdr->res.verf->committed == NFS_DATA_SYNC)
	    hdr->res.verf->committed == NFS_DATA_SYNC)
		ff_layout_set_layoutcommit(hdr);
		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)
	if (task->tk_status >= 0)
		nfs_writeback_update_inode(hdr);
		nfs_writeback_update_inode(hdr);