smbd: split out a fsp_flush_write_time_update() function from update_write_time_handler()
authorStefan Metzmacher <metze@samba.org>
Wed, 23 May 2018 07:41:29 +0000 (09:41 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 18:52:23 +0000 (20:52 +0200)
commit51407b90d9363341252acdf3663886b22d1ee4c7
treea5b31e5137f1a10acaf997f52ea59d4fc6be5f33
parent553df61946ae455839a40201250fb97269712e38
smbd: split out a fsp_flush_write_time_update() function from update_write_time_handler()

It's confusing to call update_write_time_handler() from anywhere,
it should only be called from within the event loop when the
timer expires.

This makes it more obvious that fsp_flush_write_time_update()
doesn't really need an tevent context argument.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/close.c
source3/smbd/durable.c
source3/smbd/fileio.c
source3/smbd/proto.h