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
6037891c
Commit
6037891c
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] cleanup list usage in dquot
From the kernel janitor folks
parent
13f84f82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/dquot.c
fs/dquot.c
+3
-3
No files found.
fs/dquot.c
View file @
6037891c
...
...
@@ -337,7 +337,7 @@ static void invalidate_dquots(struct super_block *sb, short type)
struct
list_head
*
head
;
restart:
for
(
head
=
inuse_list
.
next
;
head
!=
&
inuse_list
;
head
=
head
->
nex
t
)
{
list_for_each
(
head
,
&
inuse_lis
t
)
{
dquot
=
list_entry
(
head
,
struct
dquot
,
dq_inuse
);
if
(
dquot
->
dq_sb
!=
sb
)
continue
;
...
...
@@ -367,7 +367,7 @@ int sync_dquots(struct super_block *sb, short type)
lock_kernel
();
restart:
for
(
head
=
inuse_list
.
next
;
head
!=
&
inuse_list
;
head
=
head
->
nex
t
)
{
list_for_each
(
head
,
&
inuse_lis
t
)
{
dquot
=
list_entry
(
head
,
struct
dquot
,
dq_inuse
);
if
(
sb
&&
dquot
->
dq_sb
!=
sb
)
continue
;
...
...
@@ -579,7 +579,7 @@ static void add_dquot_ref(struct super_block *sb, short type)
restart:
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
inode
*
inode
=
filp
->
f_dentry
->
d_inode
;
if
(
filp
->
f_mode
&
FMODE_WRITE
&&
dqinit_needed
(
inode
,
type
))
{
...
...
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