|
@@ -747,10 +747,11 @@ xfs_convert_page(
|
|
struct backing_dev_info *bdi;
|
|
struct backing_dev_info *bdi;
|
|
|
|
|
|
bdi = inode->i_mapping->backing_dev_info;
|
|
bdi = inode->i_mapping->backing_dev_info;
|
|
|
|
+ wbc->nr_to_write--;
|
|
if (bdi_write_congested(bdi)) {
|
|
if (bdi_write_congested(bdi)) {
|
|
wbc->encountered_congestion = 1;
|
|
wbc->encountered_congestion = 1;
|
|
done = 1;
|
|
done = 1;
|
|
- } else if (--wbc->nr_to_write <= 0) {
|
|
|
|
|
|
+ } else if (wbc->nr_to_write <= 0) {
|
|
done = 1;
|
|
done = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|