smbd: split out a fsp_flush_write_time_update() function from update_write_time_handler()
[samba.git] / source3 / smbd / close.c
index 3324d3ec4e03fd06ba404015eed9d6b4719af563..8581b04e8aaf43710e959e530dc41fcf9004d073 100644 (file)
@@ -255,10 +255,7 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
 
        /* Ensure any pending write time updates are done. */
        if (fsp->update_write_time_event) {
-               update_write_time_handler(fsp->conn->sconn->ev_ctx,
-                                       fsp->update_write_time_event,
-                                       timeval_current(),
-                                       (void *)fsp);
+               fsp_flush_write_time_update(fsp);
        }
 
        /*