• David Howells's avatar
    fscache: Maintain a catalogue of allocated cookies · ec0328e4
    David Howells authored
    Maintain a catalogue of allocated cookies so that cookie collisions can be
    handled properly.  For the moment, this just involves printing a warning
    and returning a NULL cookie to the caller of fscache_acquire_cookie(), but
    in future it might make sense to wait for the old cookie to finish being
    cleaned up.
    
    This requires the cookie key to be stored attached to the cookie so that we
    still have the key available if the netfs relinquishes the cookie.  This is
    done by an earlier patch.
    
    The catalogue also renders redundant fscache_netfs_list (used for checking
    for duplicates), so that can be removed.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Acked-by: default avatarAnna Schumaker <anna.schumaker@netapp.com>
    Tested-by: default avatarSteve Dickson <steved@redhat.com>
    ec0328e4
netfs.c 2.11 KB