OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-254-g04c1716

Gerrit Code Review gerrit@openafs.org
Tue, 15 Jul 2025 21:25:31 -0400


The following commit has been merged in the master branch:
commit 04c1716734d7ae1b13c1232e82fab8d7edbd855b
Author: Mark Vitale <mvitale@sinenomine.net>
Date:   Thu Oct 17 10:48:33 2024 -0400

    afs: Convert lock macros to functions
    
    This is intended to improve readability and make it more convenient to
    add improvements in future commits.
    
    Convert the following lock macros to static_inline functions:
    - ObtainReadLock
    - NBObtainReadLock
    - ObtainWriteLock
    - NBObtainWriteLock
    - ObtainSharedLock
    - NBObtainSharedLock
    - UpgradeSToWLock
    - ConvertWToSLock
    - ConvertWToRLock
    - ConvertSToRLock
    - ReleaseReadLock
    - ReleaseWriteLock
    - ReleaseSharedLock
    - LockWaiters
    - CheckLock
    - WriteLocked
    
    Also move the following prototypes from afs_prototypes.h to afs/lock.h
    in order to ensure they are defined before they are referenced:
    - Afs_Lock_Obtain
    - Afs_Lock_ReleaseW
    - Afs_Lock_ReleaseR
    
    Style updates have been limited to:
     - conversion of ternarys to if/else logic
     - addition of braces to if/else statements
    
    Change-Id: If97a29182d477dcc1fb7ae62a11e9bcec250e92e
    Reviewed-on: https://gerrit.openafs.org/14717
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>

 src/afs/afs_prototypes.h |   4 -
 src/afs/lock.h           | 307 ++++++++++++++++++++++++++++-------------------
 2 files changed, 181 insertions(+), 130 deletions(-)

-- 
OpenAFS Master Repository