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
db46361e
Commit
db46361e
authored
Jan 09, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Cleanup the page buffers loop in writepage (no goto, like 2.4 variant).
SGI Modid: 2.5.x-xfs:slinx:161999a
parent
cd6bc28a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
fs/xfs/linux/xfs_aops.c
fs/xfs/linux/xfs_aops.c
+8
-11
No files found.
fs/xfs/linux/xfs_aops.c
View file @
db46361e
...
@@ -687,9 +687,12 @@ page_state_convert(
...
@@ -687,9 +687,12 @@ page_state_convert(
len
=
bh
->
b_size
;
len
=
bh
->
b_size
;
do
{
do
{
if
(
!
(
PageUptodate
(
page
)
||
buffer_uptodate
(
bh
))
&&
!
startio
)
{
if
(
offset
>=
end_offset
)
goto
next_bh
;
break
;
}
if
(
!
buffer_uptodate
(
bh
))
uptodate
=
0
;
if
(
!
(
PageUptodate
(
page
)
||
buffer_uptodate
(
bh
))
&&
!
startio
)
continue
;
if
(
mp
)
{
if
(
mp
)
{
mp
=
match_offset_to_mapping
(
page
,
&
map
,
p_offset
);
mp
=
match_offset_to_mapping
(
page
,
&
map
,
p_offset
);
...
@@ -798,14 +801,8 @@ page_state_convert(
...
@@ -798,14 +801,8 @@ page_state_convert(
}
}
}
}
}
}
}
while
(
offset
+=
len
,
p_offset
+=
len
,
next_bh:
((
bh
=
bh
->
b_this_page
)
!=
head
));
if
(
!
buffer_uptodate
(
bh
))
uptodate
=
0
;
offset
+=
len
;
p_offset
+=
len
;
bh
=
bh
->
b_this_page
;
}
while
(
offset
<
end_offset
);
if
(
uptodate
&&
bh
==
head
)
if
(
uptodate
&&
bh
==
head
)
SetPageUptodate
(
page
);
SetPageUptodate
(
page
);
...
...
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