• Han-Wen Nienhuys's avatar
    nodefs: garbage collection of unreferenced nodes. · 1433ae4f
    Han-Wen Nienhuys authored
    Nodes can become unused due to following reasons:
    
    * no more children (see new RmChild function) 
    * no kernel references (Forget)
    * stop being persistent
    
    If this happens, drop the node from the tree. Removals of nodes
    cascade from leaves up to parents recursively
    
    lookupCount is now protected by under Inode.mu
    
    nodeID remains under bridge.mu
    1433ae4f
bridge.go 10.6 KB