Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
5d038d72
Commit
5d038d72
authored
Jan 14, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable outstandingReadBufs.
parent
c4b6b794
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
fuse/server.go
fuse/server.go
+4
-8
No files found.
fuse/server.go
View file @
5d038d72
...
@@ -44,11 +44,10 @@ type Server struct {
...
@@ -44,11 +44,10 @@ type Server struct {
reqPool
sync
.
Pool
reqPool
sync
.
Pool
// Pool for raw requests data
// Pool for raw requests data
readPool
sync
.
Pool
readPool
sync
.
Pool
reqMu
sync
.
Mutex
reqMu
sync
.
Mutex
reqReaders
int
reqReaders
int
outstandingReadBufs
int
kernelSettings
InitIn
kernelSettings
InitIn
singleReader
bool
singleReader
bool
canSplice
bool
canSplice
bool
...
@@ -232,7 +231,6 @@ func (ms *Server) readRequest(exitIdle bool) (req *request, code Status) {
...
@@ -232,7 +231,6 @@ func (ms *Server) readRequest(exitIdle bool) (req *request, code Status) {
}
}
req
=
ms
.
reqPool
.
Get
()
.
(
*
request
)
req
=
ms
.
reqPool
.
Get
()
.
(
*
request
)
dest
:=
ms
.
readPool
.
Get
()
.
([]
byte
)
dest
:=
ms
.
readPool
.
Get
()
.
([]
byte
)
ms
.
outstandingReadBufs
++
ms
.
reqReaders
++
ms
.
reqReaders
++
ms
.
reqMu
.
Unlock
()
ms
.
reqMu
.
Unlock
()
...
@@ -258,7 +256,6 @@ func (ms *Server) readRequest(exitIdle bool) (req *request, code Status) {
...
@@ -258,7 +256,6 @@ func (ms *Server) readRequest(exitIdle bool) (req *request, code Status) {
ms
.
reqMu
.
Lock
()
ms
.
reqMu
.
Lock
()
if
!
gobbled
{
if
!
gobbled
{
ms
.
outstandingReadBufs
--
ms
.
readPool
.
Put
(
dest
)
ms
.
readPool
.
Put
(
dest
)
dest
=
nil
dest
=
nil
}
}
...
@@ -286,7 +283,6 @@ func (ms *Server) returnRequest(req *request) {
...
@@ -286,7 +283,6 @@ func (ms *Server) returnRequest(req *request) {
if
req
.
bufferPoolInputBuf
!=
nil
{
if
req
.
bufferPoolInputBuf
!=
nil
{
ms
.
readPool
.
Put
(
req
.
bufferPoolInputBuf
)
ms
.
readPool
.
Put
(
req
.
bufferPoolInputBuf
)
req
.
bufferPoolInputBuf
=
nil
req
.
bufferPoolInputBuf
=
nil
ms
.
outstandingReadBufs
--
}
}
ms
.
reqPool
.
Put
(
req
)
ms
.
reqPool
.
Put
(
req
)
ms
.
reqMu
.
Unlock
()
ms
.
reqMu
.
Unlock
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment