The following commit has been merged in the master branch:
commit 209eb92448001e59525413610356070d8e4f10a0
Author: Cheyenne Wills <[email protected]>
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 <[email protected]>
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>

 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
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to