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
919dc9e2
Commit
919dc9e2
authored
Sep 27, 2002
by
Stephen Lord
Committed by
Christoph Hellwig
Sep 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFS: Avoid writing data out to disk twice!
Modid: 2.5.x-xfs:slinx:128467a
parent
b1eaf041
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/xfs/linux/xfs_aops.c
fs/xfs/linux/xfs_aops.c
+3
-2
No files found.
fs/xfs/linux/xfs_aops.c
View file @
919dc9e2
...
@@ -223,7 +223,7 @@ probe_unmapped_page(
...
@@ -223,7 +223,7 @@ probe_unmapped_page(
page
=
find_get_page
(
mapping
,
index
);
page
=
find_get_page
(
mapping
,
index
);
if
(
!
page
)
if
(
!
page
)
return
0
;
return
0
;
if
(
TestSetPageLocked
(
page
))
{
if
(
PageWriteback
(
page
)
||
TestSetPageLocked
(
page
))
{
page_cache_release
(
page
);
page_cache_release
(
page
);
return
0
;
return
0
;
}
}
...
@@ -302,7 +302,7 @@ probe_page(
...
@@ -302,7 +302,7 @@ probe_page(
page
=
find_get_page
(
inode
->
i_mapping
,
index
);
page
=
find_get_page
(
inode
->
i_mapping
,
index
);
if
(
!
page
)
if
(
!
page
)
return
NULL
;
return
NULL
;
if
(
TestSetPageLocked
(
page
))
{
if
(
PageWriteback
(
page
)
||
TestSetPageLocked
(
page
))
{
page_cache_release
(
page
);
page_cache_release
(
page
);
return
NULL
;
return
NULL
;
}
}
...
@@ -331,6 +331,7 @@ submit_page(
...
@@ -331,6 +331,7 @@ submit_page(
BUG_ON
(
PageWriteback
(
page
));
BUG_ON
(
PageWriteback
(
page
));
SetPageWriteback
(
page
);
SetPageWriteback
(
page
);
clear_page_dirty
(
page
);
unlock_page
(
page
);
unlock_page
(
page
);
if
(
cnt
)
{
if
(
cnt
)
{
...
...
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