smbd: remove stat call from mark_file_modified()
commit8dbdba4a3156e1b0caf18a55591cacebedb12369
authorRalph Boehme <slow@samba.org>
Sun, 15 Mar 2020 14:51:18 +0000 (15 15:51 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Apr 2020 09:37:25 +0000 (7 09:37 +0000)
treea1796b42aebdb433d709cd9ca2795d96bbaa0bc5
parentdbff6af0acf36e2f377694d9f83a4a49d28b8ba6
smbd: remove stat call from mark_file_modified()

This stat dates back to d03453864ab1bc5fd3b4a3abaf96176a006c102b where the call
to trigger_write_time_update() had been to the file IO codepath. It was present
there for other reasons: to setup the write-cache based on the file's size.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14320

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2c19d27113036d607850f370bb9afd62856d671e)
source3/smbd/fileio.c