Ignore:
Timestamp:
Sep 26, 2016, 8:14:13 PM (9 years ago)
Author:
bird
Message:

kFsCache: Implemented object names changing to a longer ones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/kFsCache.h

    r2945 r2967  
    130130
    131131/**
     132 * Storage for name strings for the unlikely event that they should grow in
     133 * length after the KFSOBJ was created.
     134 */
     135typedef struct KFSOBJNAMEALLOC
     136{
     137    /** Size of the allocation. */
     138    KU32        cb;
     139    /** The space for names. */
     140    char        abSpace[1];
     141} KFSOBJNAMEALLOC;
     142/** Name growth allocation. */
     143typedef KFSOBJNAMEALLOC *PKFSOBJNAMEALLOC;
     144
     145
     146/**
    132147 * Base cache node.
    133148 */
     
    201216# endif
    202217#endif
     218
     219    /** Allocation for handling name length increases. */
     220    PKFSOBJNAMEALLOC    pNameAlloc;
    203221
    204222    /** Pointer to the first user data item */
     
    411429    /** Number of children inserted into the hash tables. */
    412430    KSIZE               cChildHashed;
    413     /** Number of collisions in the child hash tables */
     431    /** Number of collisions in the child hash tables. */
    414432    KSIZE               cChildHashCollisions;
     433    /** Number times a object name changed. */
     434    KSIZE               cNameChanges;
     435    /** Number times a object name grew and needed KFSOBJNAMEALLOC.
     436     *  (Subset of cNameChanges) */
     437    KSIZE               cNameGrowths;
    415438
    416439    /** The root directory. */
Note: See TracChangeset for help on using the changeset viewer.