• David Howells's avatar
    afs: Don't over-increment the cell usage count when pinning it · 17814aef
    David Howells authored
    AFS cells that are added or set as the workstation cell through /proc are
    pinned against removal by setting the AFS_CELL_FL_NO_GC flag on them and
    taking a ref.  The ref should be only taken if the flag wasn't already set.
    
    Fix this by making it conditional.
    
    Without this an assertion failure will occur during module removal
    indicating that the refcount is too elevated.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    17814aef
proc.c 14.5 KB