diff options
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 999792d35ccc..bc5149d5ec38 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -1910,7 +1910,8 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb) | |||
1910 | if (gdtc->dirty > gdtc->bg_thresh) | 1910 | if (gdtc->dirty > gdtc->bg_thresh) |
1911 | return true; | 1911 | return true; |
1912 | 1912 | ||
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)) | ||
1914 | return true; | 1915 | return true; |
1915 | 1916 | ||
1916 | if (mdtc) { | 1917 | if (mdtc) { |
@@ -1924,7 +1925,8 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb) | |||
1924 | if (mdtc->dirty > mdtc->bg_thresh) | 1925 | if (mdtc->dirty > mdtc->bg_thresh) |
1925 | return true; | 1926 | return true; |
1926 | 1927 | ||
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)) | ||
1928 | return true; | 1930 | return true; |
1929 | } | 1931 | } |
1930 | 1932 | ||