projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5482cd
)
mm: write_cache_pages more terminate quickly
author
Andrew Morton
<
[email protected]
>
Tue, 6 Jan 2009 22:39:11 +0000
(14:39 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 6 Jan 2009 23:59:00 +0000
(15:59 -0800)
Now that we have the early-termination logic in place, it makes sense to
bail out early in all other cases where done is set to 1.
Signed-off-by: Nick Piggin <
[email protected]
>
Cc: Chris Mason <
[email protected]
>
Cc: Dave Chinner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page-writeback.c
patch
|
blob
|
history
diff --git
a/mm/page-writeback.c
b/mm/page-writeback.c
index 0d986c13d4733c5aa6a05940646509ddb99841f0..08d2b960b29456c54d68c9bf9ec19487b0051b57 100644
(file)
--- a/
mm/page-writeback.c
+++ b/
mm/page-writeback.c
@@
-983,12
+983,15
@@
continue_unlock:
if (wbc->sync_mode == WB_SYNC_NONE) {
wbc->nr_to_write--;
- if (wbc->nr_to_write <= 0)
+ if (wbc->nr_to_write <= 0)
{
done = 1;
+ break;
+ }
}
if (wbc->nonblocking && bdi_write_congested(bdi)) {
wbc->encountered_congestion = 1;
done = 1;
+ break;
}
}
pagevec_release(&pvec);