OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-440-g2453ac2

Gerrit Code Review gerrit@openafs.org
Wed, 18 Mar 2026 13:28:12 -0400


The following commit has been merged in the master branch:
commit 2453ac257f8b6993cbb95bee077c332e01dc3551
Author: Cheyenne Wills <cwills@sinenomine.net>
Date:   Fri Mar 6 12:25:13 2026 -0700

    Linux: Use __getname()/__putname() to alloc name
    
    The Linux 7.0 commit:
       'fs: hide names_cache behind runtime const machinery'
       (7ca83f8ebe867)
    make names_cachep a private symbol within namei support.  The commit:
       'struct filename: use names_cachep only for getname() and friends'
       (c3a3577cdb351)
    instructs users of names_cachep to simply allocate the memory via
    kmalloc.
    
    The Linux provided macros __getname() and __putname() perform the
    required memory allocation/free, switching from names_cachep to kmalloc
    in c3a3577cdb351.  These two macros have been available since at least
    2.6.18, so there is no need to add a specific autoconf test for them.
    
    Relocate afs_putname() to be ahead of afs_getname() and update to use
    __putname() to release the name.
    
    Update afs_getname() to use __getname() to obtain the storage for the
    name and call afs__putname() to release the name.
    
    Change-Id: Ia919bc613126ff593dbf08b874f06094cd9ab785
    Reviewed-on: https://gerrit.openafs.org/16699
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>

 src/afs/LINUX/osi_misc.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

-- 
OpenAFS Master Repository