]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NFS41/flexfiles: zero out DS write wcc
authorPeng Tao <tao.peng@primarydata.com>
Fri, 21 Aug 2015 22:40:00 +0000 (06:40 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Aug 2015 18:40:06 +0000 (14:40 -0400)
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>
fs/nfs/flexfilelayout/flexfilelayout.c

index 7e4cbdfb37131d1cd269e1bbb5d72cff0306f134..cc2c5f7f2bc19fcf19e0f9215f4c9eccd42876fb 100644 (file)
@@ -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);