Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209979
b: refs/heads/master
c: 546a192
h: refs/heads/master
i:
  209977: 4d3b82b
  209975: c18f793
v: v3
  • Loading branch information
Dave Chinner authored and Dave Chinner committed Aug 24, 2010
1 parent 17b7bb2 commit 54ea7f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4536f2ad8b330453d7ebec0746c4374eadd649b1
refs/heads/master: 546a1924224078c6f582e68f890b05b387b42653
26 changes: 10 additions & 16 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,22 +985,16 @@ int write_cache_pages(struct address_space *mapping,
}
}

if (wbc->nr_to_write > 0) {
if (--wbc->nr_to_write == 0 &&
wbc->sync_mode == WB_SYNC_NONE) {
/*
* We stop writing back only if we are
* not doing integrity sync. In case of
* integrity sync we have to keep going
* because someone may be concurrently
* dirtying pages, and we might have
* synced a lot of newly appeared dirty
* pages, but have not synced all of the
* old dirty pages.
*/
done = 1;
break;
}
/*
* We stop writing back only if we are not doing
* integrity sync. In case of integrity sync we have to
* keep going until we have written all the pages
* we tagged for writeback prior to entering this loop.
*/
if (--wbc->nr_to_write <= 0 &&
wbc->sync_mode == WB_SYNC_NONE) {
done = 1;
break;
}
}
pagevec_release(&pvec);
Expand Down

0 comments on commit 54ea7f9

Please sign in to comment.