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
3cbdf133
Commit
3cbdf133
authored
Apr 03, 2002
by
Dave Jones
Committed by
Linus Torvalds
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] list_for_each is fs/
From the kernel janitor folks
parent
6037891c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
fs/binfmt_misc.c
fs/binfmt_misc.c
+1
-1
fs/block_dev.c
fs/block_dev.c
+1
-1
fs/char_dev.c
fs/char_dev.c
+1
-1
fs/fat/inode.c
fs/fat/inode.c
+1
-1
fs/file_table.c
fs/file_table.c
+1
-1
fs/nfsd/nfsfh.c
fs/nfsd/nfsfh.c
+1
-1
fs/proc/generic.c
fs/proc/generic.c
+1
-1
fs/reiserfs/inode.c
fs/reiserfs/inode.c
+1
-1
No files found.
fs/binfmt_misc.c
View file @
3cbdf133
...
...
@@ -62,7 +62,7 @@ static Node *check_file(struct linux_binprm *bprm)
char
*
p
=
strrchr
(
bprm
->
filename
,
'.'
);
struct
list_head
*
l
;
for
(
l
=
entries
.
next
;
l
!=
&
entries
;
l
=
l
->
next
)
{
list_for_each
(
l
,
&
entries
)
{
Node
*
e
=
list_entry
(
l
,
Node
,
list
);
char
*
s
;
int
j
;
...
...
fs/block_dev.c
View file @
3cbdf133
...
...
@@ -337,7 +337,7 @@ static struct block_device *bdfind(dev_t dev, struct list_head *head)
{
struct
list_head
*
p
;
struct
block_device
*
bdev
;
for
(
p
=
head
->
next
;
p
!=
head
;
p
=
p
->
next
)
{
list_for_each
(
p
,
head
)
{
bdev
=
list_entry
(
p
,
struct
block_device
,
bd_hash
);
if
(
bdev
->
bd_dev
!=
dev
)
continue
;
...
...
fs/char_dev.c
View file @
3cbdf133
...
...
@@ -67,7 +67,7 @@ static struct char_device *cdfind(dev_t dev, struct list_head *head)
{
struct
list_head
*
p
;
struct
char_device
*
cdev
;
for
(
p
=
head
->
next
;
p
!=
head
;
p
=
p
->
next
)
{
list_for_each
(
p
,
head
)
{
cdev
=
list_entry
(
p
,
struct
char_device
,
hash
);
if
(
cdev
->
dev
!=
dev
)
continue
;
...
...
fs/fat/inode.c
View file @
3cbdf133
...
...
@@ -486,7 +486,7 @@ struct dentry *fat_fh_to_dentry(struct super_block *sb, __u32 *fh,
* code.
*/
spin_lock
(
&
dcache_lock
);
for
(
lp
=
inode
->
i_dentry
.
next
;
lp
!=
&
inode
->
i_dentry
;
lp
=
lp
->
next
)
{
list_for_each
(
lp
,
&
inode
->
i_dentry
)
{
result
=
list_entry
(
lp
,
struct
dentry
,
d_alias
);
if
(
!
(
result
->
d_flags
&
DCACHE_NFSD_DISCONNECTED
))
{
dget_locked
(
result
);
...
...
fs/file_table.c
View file @
3cbdf133
...
...
@@ -169,7 +169,7 @@ int fs_may_remount_ro(struct super_block *sb)
/* Check that no files are currently opened for writing. */
file_list_lock
();
for
(
p
=
sb
->
s_files
.
next
;
p
!=
&
sb
->
s_files
;
p
=
p
->
next
)
{
list_for_each
(
p
,
&
sb
->
s_files
)
{
struct
file
*
file
=
list_entry
(
p
,
struct
file
,
f_list
);
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
...
...
fs/nfsd/nfsfh.c
View file @
3cbdf133
...
...
@@ -160,7 +160,7 @@ static struct dentry *nfsd_iget(struct super_block *sb, unsigned long ino, __u32
* If possible, get a well-connected one
*/
spin_lock
(
&
dcache_lock
);
for
(
lp
=
inode
->
i_dentry
.
next
;
lp
!=
&
inode
->
i_dentry
;
lp
=
lp
->
next
)
{
list_for_each
(
lp
,
&
inode
->
i_dentry
)
{
result
=
list_entry
(
lp
,
struct
dentry
,
d_alias
);
if
(
!
(
result
->
d_flags
&
DCACHE_NFSD_DISCONNECTED
))
{
dget_locked
(
result
);
...
...
fs/proc/generic.c
View file @
3cbdf133
...
...
@@ -404,7 +404,7 @@ static void proc_kill_inodes(struct proc_dir_entry *de)
* Actually it's a partial revoke().
*/
file_list_lock
();
for
(
p
=
sb
->
s_files
.
next
;
p
!=
&
sb
->
s_files
;
p
=
p
->
next
)
{
list_for_each
(
p
,
&
sb
->
s_files
)
{
struct
file
*
filp
=
list_entry
(
p
,
struct
file
,
f_list
);
struct
dentry
*
dentry
=
filp
->
f_dentry
;
struct
inode
*
inode
;
...
...
fs/reiserfs/inode.c
View file @
3cbdf133
...
...
@@ -1289,7 +1289,7 @@ struct dentry *reiserfs_fh_to_dentry(struct super_block *sb, __u32 *data,
* If possible, get a well-connected one
*/
spin_lock
(
&
dcache_lock
);
for
(
lp
=
inode
->
i_dentry
.
next
;
lp
!=
&
inode
->
i_dentry
;
lp
=
lp
->
next
)
{
list_for_each
(
lp
,
&
inode
->
i_dentry
)
{
result
=
list_entry
(
lp
,
struct
dentry
,
d_alias
);
if
(
!
(
result
->
d_flags
&
DCACHE_NFSD_DISCONNECTED
))
{
dget_locked
(
result
);
...
...
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