]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:33:29 +0000 (19:33 +0200)
commit 5420401079e152ff68a8024f6a375804b1c21505 upstream.

We do not want to update inode attributes with DS values.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/flexfilelayout/flexfilelayout.c

index e31e8fe0e5ec6af8ae8b71447b5157b9d15329b1..14e3b1e1b17d2ae6f3c9ab21a501f933593867d5 100644 (file)
@@ -1199,6 +1199,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);