| From 5420401079e152ff68a8024f6a375804b1c21505 Mon Sep 17 00:00:00 2001 |
| From: Peng Tao <tao.peng@primarydata.com> |
| Date: Sat, 22 Aug 2015 06:40:00 +0800 |
| Subject: NFS41/flexfiles: zero out DS write wcc |
| |
| From: Peng Tao <tao.peng@primarydata.com> |
| |
| 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 | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| --- a/fs/nfs/flexfilelayout/flexfilelayout.c |
| +++ b/fs/nfs/flexfilelayout/flexfilelayout.c |
| @@ -1199,6 +1199,8 @@ static int ff_layout_write_done_cb(struc |
| 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); |
| |