From: Peng Tao Date: Fri, 21 Aug 2015 22:40:00 +0000 (+0800) Subject: NFS41/flexfiles: zero out DS write wcc X-Git-Tag: Ubuntu-5.0.0-8.9~8739^2~39 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5420401079e152ff68a8024f6a375804b1c21505;p=mirror_ubuntu-disco-kernel.git 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 Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index 7e4cbdfb3713..cc2c5f7f2bc1 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c @@ -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);