From: Ralph Boehme Date: Wed, 1 Oct 2025 09:45:43 +0000 (+0200) Subject: smbd: remove remnants from write cache handling which was removed a long time ago X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21d10f0005a728c265da445e82b80c8955cbf060;p=thirdparty%2Fsamba.git smbd: remove remnants from write cache handling which was removed a long time ago Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index ce04056fc34..d2d53e779e1 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -849,12 +849,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp, NT_STATUS_RANGE_NOT_LOCKED); } - /* - * If we're flushing on a close we can get a write - * error here, we must remember this. - */ - - if (NT_STATUS_IS_OK(status) && fsp->op != NULL) { + if (fsp->op != NULL) { is_durable = fsp->op->global->durable; }