diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-08-20 01:52:59 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 19:26:09 +0200 |
commit | 73e8e7b2bbf68ddc590a0e725c2099fe0fa75b6a (patch) | |
tree | c881c4837d0b8cacd633819c95871173ab774ac8 /fs | |
parent | 8d1920be7e762a77468c5ea82aab1ac4358d8fc9 (diff) | |
download | lwn-73e8e7b2bbf68ddc590a0e725c2099fe0fa75b6a.tar.gz lwn-73e8e7b2bbf68ddc590a0e725c2099fe0fa75b6a.zip |
NFS41/flexfiles: update inode after write finishes
commit 69f230d907e8c1ca3f9bd528993eeb98f712b0dd upstream.
Otherwise we break fstest case tests/read_write/mctime.t
Does files layout need the same fix as well?
Cc: Anna Schumaker <anna.schumaker@netapp.com>
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index 6f5f0f425e86..64604cf3af31 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c @@ -1039,6 +1039,9 @@ static int ff_layout_write_done_cb(struct rpc_task *task, hdr->res.verf->committed == NFS_DATA_SYNC) ff_layout_set_layoutcommit(hdr); + if (task->tk_status >= 0) + nfs_writeback_update_inode(hdr); + return 0; } |