You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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()
This commit is contained in:
+4
-2
@@ -1910,7 +1910,8 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb)
|
||||
if (gdtc->dirty > gdtc->bg_thresh)
|
||||
return true;
|
||||
|
||||
if (wb_stat(wb, WB_RECLAIMABLE) > __wb_calc_thresh(gdtc))
|
||||
if (wb_stat(wb, WB_RECLAIMABLE) >
|
||||
wb_calc_thresh(gdtc->wb, gdtc->bg_thresh))
|
||||
return true;
|
||||
|
||||
if (mdtc) {
|
||||
@@ -1924,7 +1925,8 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb)
|
||||
if (mdtc->dirty > mdtc->bg_thresh)
|
||||
return true;
|
||||
|
||||
if (wb_stat(wb, WB_RECLAIMABLE) > __wb_calc_thresh(mdtc))
|
||||
if (wb_stat(wb, WB_RECLAIMABLE) >
|
||||
wb_calc_thresh(mdtc->wb, mdtc->bg_thresh))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user