From: Jeffrey Altman Date: Fri, 2 Dec 2011 16:19:13 +0000 (-0500) Subject: Windows: fix buf_Recycle() comment X-Git-Tag: upstream/1.6.1.pre4^2~29 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7193b01dfa750b371de63a4003666773e15a84ae;p=packages%2Fo%2Fopenafs.git Windows: fix buf_Recycle() comment buf_Recycle() does not return with a reference count to the cm_buf_t object held. Correct the comment. Reviewed-on: http://gerrit.openafs.org/6173 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit 7dccf17840a53e96b21f8c092910f3e4d7628b71) Change-Id: I0890439df967f8b2a87d5079adcd71a646500876 Reviewed-on: http://gerrit.openafs.org/6812 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/WINNT/afsd/cm_buf.c b/src/WINNT/afsd/cm_buf.c index 460ba7e64..b3d41a668 100644 --- a/src/WINNT/afsd/cm_buf.c +++ b/src/WINNT/afsd/cm_buf.c @@ -852,7 +852,7 @@ afs_uint32 buf_CleanLocked(cm_scache_t *scp, cm_buf_t *bp, cm_req_t *reqp, } /* Called with a zero-ref count buffer and with the buf_globalLock write locked. - * recycles the buffer, and leaves it ready for reuse with a ref count of 1. + * recycles the buffer, and leaves it ready for reuse with a ref count of 0. * The buffer must already be clean, and no I/O should be happening to it. */ void buf_Recycle(cm_buf_t *bp)