summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-03-15 15:51:18 +0100
committerKarolin Seeger <kseeger@samba.org>2020-04-07 08:12:36 +0000
commitbd89299d2f7ba27f65b901bbbab27677751d0d84 (patch)
treec153bf5dbda72ce0d9e5c0ec458666bc0c3426d2
parent58723f78af08dac2959e14705f0023f5a6517a32 (diff)
downloadsamba-bd89299d2f7ba27f65b901bbbab27677751d0d84.tar.gz
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)
-rw-r--r--source3/smbd/fileio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c
index 029965282f1..2487baeb369 100644
--- a/source3/smbd/fileio.c
+++ b/source3/smbd/fileio.c
@@ -220,9 +220,6 @@ void mark_file_modified(files_struct *fsp)
fsp->modified = true;
- if (SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) != 0) {
- return;
- }
trigger_write_time_update(fsp);
if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) {