Commit 542fa903 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Document per mount locking idea.

parent d339218a
......@@ -23,6 +23,10 @@ type mountData struct {
// * the kernel controls when to ask for updates,
// so we can't make entries disappear directly anyway.
unmountPending bool
// We could have separate treeLocks per mount; something to
// consider if we can measure significant contention for
// multi-mount filesystems.
}
func newMount(fs FileSystem) *mountData {
......@@ -118,7 +122,6 @@ func (me *inode) setParent(newParent *inode) {
if me.Parent == newParent {
return
}
if me.Parent != nil {
me.Parent.Children[me.Name] = nil, false
me.Parent = nil
......
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