The following commit has been merged in the openafs-stable-1_8_x branch:
commit 5c9ec0359914e641da69b5490150e74d8ce3b8a7
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.
Reviewed-on: https://gerrit.openafs.org/14954
Reviewed-by: Andrew Deason <[email protected]>
Tested-by: BuildBot <[email protected]>
Reviewed-by: Benjamin Kaduk <[email protected]>
(cherry picked from commit 209eb92448001e59525413610356070d8e4f10a0)
Change-Id: Id9c23195e062c720fdbde83a9b5d36fb287aa8a4
Reviewed-on: https://gerrit.openafs.org/15059
Tested-by: BuildBot <[email protected]>
Reviewed-by: Andrew Deason <[email protected]>
Reviewed-by: Michael Meffie <[email protected]>
Reviewed-by: Stephan Wiesand <[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