Implemented Destroy for forgetfs.
parent
630f40de94
commit
9cc2a6f450
|
@ -164,6 +164,11 @@ func (in *inode) DecrementLookupCount(n uint64) {
|
||||||
in.lookupCount -= n
|
in.lookupCount -= n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Decrement the lookup count to zero.
|
||||||
|
func (in *inode) Destroy() {
|
||||||
|
in.DecrementLookupCount(in.lookupCount)
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// Helpers
|
// Helpers
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -372,3 +377,9 @@ func (fs *fsImpl) OpenDir(
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (fs *fsImpl) Destroy() {
|
||||||
|
for _, in := range fs.inodes {
|
||||||
|
in.Destroy()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue