NFS41/flexfiles: update inode after write finishes
authorPeng Tao <tao.peng@primarydata.com>
Wed, 19 Aug 2015 17:52:59 +0000 (01:52 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 19 Aug 2015 18:51:16 +0000 (13:51 -0500)
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>
fs/nfs/flexfilelayout/flexfilelayout.c

index 13fe64b4e259e875a9b41c03d5e74f481df149b0..4bd3cff941903a9d31e505bb69cdf9b3366da1df 100644 (file)
@@ -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;
 }
 
This page took 0.04309 seconds and 5 git commands to generate.