Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18179
b: refs/heads/master
c: f5e596b
h: refs/heads/master
i:
  18177: aaaeaf4
  18175: 5b44cf7
v: v3
  • Loading branch information
Christoph Hellwig authored and Nathan Scott committed Jan 11, 2006
1 parent 03eaf8e commit bfbbaa0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 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: 6c4fe19f66a839bce68fcb7b99cdcb0f31c7a59e
refs/heads/master: f5e596bbef3b0fa583c66c5a83dc9737c0fe2610
15 changes: 12 additions & 3 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,17 @@ xfs_convert_page(
SetPageUptodate(page);

if (startio) {
if (count)
wbc->nr_to_write--;
if (count) {
struct backing_dev_info *bdi;

bdi = inode->i_mapping->backing_dev_info;
if (bdi_write_congested(bdi)) {
wbc->encountered_congestion = 1;
done = 1;
} else if (--wbc->nr_to_write <= 0) {
done = 1;
}
}
xfs_start_page_writeback(page, wbc, !page_dirty, count);
}

Expand Down Expand Up @@ -812,7 +821,7 @@ xfs_page_state_convert(
int all_bh = unmapped;

/* wait for other IO threads? */
if (startio && wbc->sync_mode != WB_SYNC_NONE)
if (startio && (wbc->sync_mode == WB_SYNC_NONE && wbc->nonblocking))
trylock_flag |= BMAPI_TRYLOCK;

/* Is this page beyond the end of the file? */
Expand Down

0 comments on commit bfbbaa0

Please sign in to comment.