Skip to content

Commit

Permalink
[XFS] Account for the page we just wrote when we detect congestion du…
Browse files Browse the repository at this point in the history
…ring

the clustering of extra pages in a buffered write.

SGI-PV: 949210
SGI-Modid: xfs-linux-melb:xfs-kern:25130a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
David Chinner authored and Nathan Scott committed Feb 7, 2006
1 parent e3f749c commit 9fddaca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,11 @@ xfs_convert_page(
struct backing_dev_info *bdi;

bdi = inode->i_mapping->backing_dev_info;
wbc->nr_to_write--;
if (bdi_write_congested(bdi)) {
wbc->encountered_congestion = 1;
done = 1;
} else if (--wbc->nr_to_write <= 0) {
} else if (wbc->nr_to_write <= 0) {
done = 1;
}
}
Expand Down

0 comments on commit 9fddaca

Please sign in to comment.