Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69f230d9 authored by Peng Tao's avatar Peng Tao Committed by Trond Myklebust
Browse files

NFS41/flexfiles: update inode after write finishes



Otherwise we break fstest case tests/read_write/mctime.t

Does files layout need the same fix as well?

Cc: stable@vger.kernel.org # v4.0+
Cc: Anna Schumaker <anna.schumaker@netapp.com>
Signed-off-by: default avatarPeng Tao <tao.peng@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent e755d638
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1199,6 +1199,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;
}