mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
3976143b06
commit
5420401079
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue