]> www.infradead.org Git - users/jedix/linux-maple.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:26:10 +0000 (19:26 +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 64604cf3af317b2521f43b9a7e7bc0a744dee64d..fecd9201dbadf1f0b327cf58677fd1d1e08017c3 100644 (file)
@@ -1039,6 +1039,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);