Selaa lähdekoodia

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: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Peng Tao 10 vuotta sitten
vanhempi
commit
69f230d907
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      fs/nfs/flexfilelayout/flexfilelayout.c

+ 3 - 0
fs/nfs/flexfilelayout/flexfilelayout.c

@@ -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;
 }