Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fddaca2 authored by David Chinner's avatar David Chinner Committed by Nathan Scott
Browse files

[XFS] Account for the page we just wrote when we detect congestion during


the clustering of extra pages in a buffered write.

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

Signed-off-by: default avatarDavid Chinner <dgc@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent e3f749c4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
			}
		}