• Han-Wen Nienhuys's avatar
    nodefs: garbage collection of unreferenced nodes. · 7158036d
    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
    7158036d
bridge.go 10.6 KB