Skip to content

Commit 0783783

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
Pull writeback fix from Jens Axboe: "Just a single fix for domain aware writeback, fixing a regression that can cause balance_dirty_pages() to keep looping while not getting any work done" * 'for-linus' of git://git.kernel.dk/linux-block: writeback: Fix performance regression in wb_over_bg_thresh()
2 parents 3f86ba5 + 74d3694 commit 0783783

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mm/page-writeback.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,8 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb)
19101910
if (gdtc->dirty > gdtc->bg_thresh)
19111911
return true;
19121912

1913-
if (wb_stat(wb, WB_RECLAIMABLE) > __wb_calc_thresh(gdtc))
1913+
if (wb_stat(wb, WB_RECLAIMABLE) >
1914+
wb_calc_thresh(gdtc->wb, gdtc->bg_thresh))
19141915
return true;
19151916

19161917
if (mdtc) {
@@ -1924,7 +1925,8 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb)
19241925
if (mdtc->dirty > mdtc->bg_thresh)
19251926
return true;
19261927

1927-
if (wb_stat(wb, WB_RECLAIMABLE) > __wb_calc_thresh(mdtc))
1928+
if (wb_stat(wb, WB_RECLAIMABLE) >
1929+
wb_calc_thresh(mdtc->wb, mdtc->bg_thresh))
19281930
return true;
19291931
}
19301932

0 commit comments

Comments
 (0)