From: Jeffrey Altman Date: Wed, 31 Oct 2012 01:54:20 +0000 (-0400) Subject: Windows: Do not flush dirty bufs to deleted FID X-Git-Tag: upstream/1.8.0_pre1^2~1850 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aa3579b26503f42de50e7c58c56937a7fbf4d45f;p=packages%2Fo%2Fopenafs.git Windows: Do not flush dirty bufs to deleted FID If the FID is known to have been deleted, drop all dirty data returned from the redirector on the floor. Change-Id: I8b9a1a69d632d7243bdbcfedb5329558e0004d2e Reviewed-on: http://gerrit.openafs.org/8343 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 83c65ea52..24d1483a8 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -3854,7 +3854,9 @@ RDR_ReleaseFileExtents( IN cm_user_t *userp, } if (scp) { - if (ReleaseExtentsCB->Flags & AFS_EXTENT_FLAG_FLUSH) { + if (deleted) { + code = 0; + } else if (ReleaseExtentsCB->Flags & AFS_EXTENT_FLAG_FLUSH) { lock_ObtainWrite(&scp->rw); code = cm_SyncOp(scp, NULL, userp, &req, PRSFS_WRITE, CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS);