OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-171-g209eb92

Gerrit Code Review gerrit@openafs.org
Thu, 9 Jun 2022 12:27:05 -0400


The following commit has been merged in the master branch:
commit 209eb92448001e59525413610356070d8e4f10a0
Author: Cheyenne Wills <cwills@sinenomine.net>
Date:   Mon Jun 6 12:27:43 2022 -0600

    afs: introduce afs_alloc_ncr/afs_free_ncr
    
    There is duplicated code for initializing a nocache_read_request
    and also freeing the associated storage in certain cases.  Create a set
    of helper functions that allocates and frees a nocache_read_request and
    its associated structures.
    
    afs_alloc_ncr allocates a nocache_read_request structure and if not
    UKERNEL, will allocate and initialize the associated uio and iovec
    structures.
    
    afs_free_ncr releases a noncache_read_request structure and the
    associated uio and iovec structures if not UKERNEL.
    
    Update locations that allocate/free nocache_read_request structures to
    use the new functions.
    
    Change-Id: I80c0b4eb036bcb1223b73f4c1de2c12be362de42
    Reviewed-on: https://gerrit.openafs.org/14954
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

 src/afs/LINUX/osi_vnodeops.c | 41 +++++++++-----------
 src/afs/UKERNEL/afs_usrops.c |  8 +++-
 src/afs/afs_bypasscache.c    | 92 +++++++++++++++++++++++++++++++++++++++-----
 src/afs/afs_bypasscache.h    |  3 +-
 4 files changed, 108 insertions(+), 36 deletions(-)

-- 
OpenAFS Master Repository