Commit 2d84dd32 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Update comments

parent e37d7326
......@@ -77,7 +77,7 @@ type MountState struct {
// Dump debug info onto stdout.
Debug bool
// For efficient reads.
// For efficient reads and writes.
buffers *BufferPool
statisticsMutex sync.Mutex
......@@ -133,8 +133,7 @@ func (me *MountState) UnregisterDir(handle uint64) {
// Mount filesystem on mountPoint.
//
// If threaded is set, each filesystem operation executes in a
// separate goroutine, and errors and writes are done asynchronously
// using channels.
// separate goroutine.
//
// TODO - error handling should perhaps be user-serviceable.
func (me *MountState) Mount(mountPoint string) os.Error {
......
......@@ -23,8 +23,6 @@ type mountData struct {
openCount int
}
// TODO - should we call async or not? what is the goroutine creation
// overhead vs. lock acquisition.
func (me *mountData) incOpenCount(delta int) {
me.mutex.Lock()
defer me.mutex.Unlock()
......
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