Commit 0f8226ac authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

nodefs: drop unused function.

parent 3f1fc75b
......@@ -250,35 +250,6 @@ func (iparent *Inode) setEntry(name string, ichild *Inode) {
iparent.changeCounter++
}
func (n *Inode) clearParents() {
for {
lockme := []*Inode{n}
n.mu.Lock()
ts := n.changeCounter
for p := range n.parents {
lockme = append(lockme, p.parent)
}
n.mu.Unlock()
lockNodes(lockme...)
success := false
if ts == n.changeCounter {
for p := range n.parents {
delete(p.parent.children, p.name)
p.parent.changeCounter++
}
n.parents = map[parentData]struct{}{}
n.changeCounter++
success = true
}
unlockNodes(lockme...)
if success {
return
}
}
}
// NewPersistentInode returns an Inode whose lifetime is not in
// control of the kernel.
func (n *Inode) NewPersistentInode(node Node, mode uint32, opaque uint64) *Inode {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment