Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
nexedi
linux
Commits
05726aca
Commit
05726aca
authored
Jul 30, 2013
by
Dong Fang
Committed by
Miklos Szeredi
Sep 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: use list_for_each_entry() for list traversing
Signed-off-by:
Miklos Szeredi
<
mszeredi@suse.cz
>
parent
efeb9e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
fs/fuse/dev.c
fs/fuse/dev.c
+2
-4
No files found.
fs/fuse/dev.c
View file @
05726aca
...
@@ -1765,11 +1765,9 @@ static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code,
...
@@ -1765,11 +1765,9 @@ static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code,
/* Look up request on processing list by unique ID */
/* Look up request on processing list by unique ID */
static
struct
fuse_req
*
request_find
(
struct
fuse_conn
*
fc
,
u64
unique
)
static
struct
fuse_req
*
request_find
(
struct
fuse_conn
*
fc
,
u64
unique
)
{
{
struct
list_head
*
entry
;
struct
fuse_req
*
req
;
list_for_each
(
entry
,
&
fc
->
processing
)
{
list_for_each_entry
(
req
,
&
fc
->
processing
,
list
)
{
struct
fuse_req
*
req
;
req
=
list_entry
(
entry
,
struct
fuse_req
,
list
);
if
(
req
->
in
.
h
.
unique
==
unique
||
req
->
intr_unique
==
unique
)
if
(
req
->
in
.
h
.
unique
==
unique
||
req
->
intr_unique
==
unique
)
return
req
;
return
req
;
}
}
...
...
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