Skip to content

Commit

Permalink
cgofuse: lint - struct alignment
Browse files Browse the repository at this point in the history
fileHandle: 24 pointer bytes -> 16
fileTable: 32 pointer bytes -> 8
  • Loading branch information
djdv committed Jun 21, 2023
1 parent 26b9369 commit 6221424
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions internal/filesystem/cgofuse/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ type (
// NOTE: PID omitted as not used.
}
fileHandle struct {
// TODO: Our path based locks should be enough to make this redundant,
// however, the underlying `fs.FS` files should expose this mechanism itself.
// (So that cross API locks can be possible. E.g. FUSE+9P accessing the same `fs.File`)
ioMu sync.Mutex
goFile fs.File
// TODO: Our path based locks should be enough to make this mutex redundant,
// however, the underlying `fs.FS` files should expose lock mechanisms themselves.
// (So that cross API locks can be possible. E.g. FUSE+9P accessing the same `fs.File`)
ioMu sync.Mutex
}
seekerFile interface {
fs.File
Expand Down
2 changes: 1 addition & 1 deletion internal/filesystem/cgofuse/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
type (
handleSlice []*fileHandle
fileTable struct {
sync.RWMutex
files handleSlice
sync.RWMutex
}
)

Expand Down

0 comments on commit 6221424

Please sign in to comment.