From: Mark Vitale Date: Thu, 6 Sep 2018 18:09:26 +0000 (-0400) Subject: volser: combine GCTrans conditional clauses X-Git-Tag: upstream/1.8.3^2~24 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b0920d0a07a2aec55269002960bc71a9a9b99411;p=packages%2Fo%2Fopenafs.git volser: combine GCTrans conditional clauses In preparation for a future commit, combine two conditional clauses in GCTrans(). No functional change should be incurred by this commit. Reviewed-on: https://gerrit.openafs.org/13303 Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk (cherry picked from commit 95b0641ad8cfd0358576c6e1a93266fc59ecf710) Change-Id: If808a00cf935235cdeb20bf73f03ad235f8b2c39 Reviewed-on: https://gerrit.openafs.org/13336 Reviewed-by: Michael Meffie Reviewed-by: Marcio Brito Barbosa Reviewed-by: Cheyenne Wills Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/volser/voltrans.c b/src/volser/voltrans.c index 18811b1b1..158fec603 100644 --- a/src/volser/voltrans.c +++ b/src/volser/voltrans.c @@ -187,9 +187,7 @@ GCTrans(void) ((tt->refCount > 0) ? "is older" : "has been idle for more"), (((now - tt->time) / GCWAKEUP) * GCWAKEUP)); } - if (tt->refCount > 0) - continue; - if (tt->time + OLDTRANSTIME < now) { + if ((tt->refCount <= 0) && (tt->time + OLDTRANSTIME < now)) { Log("trans %u on volume %" AFS_VOLID_FMT " has timed out\n", tt->tid, afs_printable_VolumeId_lu(tt->volid)); tt->refCount++; /* we're using it now */