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
Kirill Smelkov
linux
Commits
1d674107
Commit
1d674107
authored
Jun 09, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coda: use list_for_each_entry
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b3d9b7a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
fs/coda/cache.c
fs/coda/cache.c
+3
-7
No files found.
fs/coda/cache.c
View file @
1d674107
...
@@ -89,17 +89,13 @@ int coda_cache_check(struct inode *inode, int mask)
...
@@ -89,17 +89,13 @@ int coda_cache_check(struct inode *inode, int mask)
/* this won't do any harm: just flag all children */
/* this won't do any harm: just flag all children */
static
void
coda_flag_children
(
struct
dentry
*
parent
,
int
flag
)
static
void
coda_flag_children
(
struct
dentry
*
parent
,
int
flag
)
{
{
struct
list_head
*
child
;
struct
dentry
*
de
;
struct
dentry
*
de
;
spin_lock
(
&
parent
->
d_lock
);
spin_lock
(
&
parent
->
d_lock
);
list_for_each
(
child
,
&
parent
->
d_subdirs
)
list_for_each_entry
(
de
,
&
parent
->
d_subdirs
,
d_u
.
d_child
)
{
{
de
=
list_entry
(
child
,
struct
dentry
,
d_u
.
d_child
);
/* don't know what to do with negative dentries */
/* don't know what to do with negative dentries */
if
(
!
de
->
d_inode
)
if
(
de
->
d_inode
)
continue
;
coda_flag_inode
(
de
->
d_inode
,
flag
);
coda_flag_inode
(
de
->
d_inode
,
flag
);
}
}
spin_unlock
(
&
parent
->
d_lock
);
spin_unlock
(
&
parent
->
d_lock
);
return
;
return
;
...
...
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