Commit 68f32f6d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/pathfs: don't take pathLock in GetPath()

The parent tracking moved into nodefs in
commit 0107672a, so there is no need for
taking that lock anymore.
parent 96a198bf
......@@ -276,7 +276,6 @@ func (n *pathInode) GetPath() string {
// them, them, but since this is a hot path, we take some
// effort to avoid allocations.
n.pathFs.pathLock.RLock()
walkUp := n.Inode()
// TODO - guess depth?
......@@ -299,7 +298,6 @@ func (n *pathInode) GetPath() string {
pathBytes = append(pathBytes, '/')
}
}
n.pathFs.pathLock.RUnlock()
path := string(pathBytes)
if n.pathFs.debug {
......
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