[Devel,RHEL7,COMMIT] mm: Revert accounting for WRITEBACK_TEMP in balance_dirty_pages

Submitted by Konstantin Khorenko on March 3, 2017, 9:54 a.m.


Message ID 201703030954.v239snsh008527@finist_cl7.x64_64.work.ct
State New
Series "mm: Revert accounting for WRITEBACK_TEMP in balance_dirty_pages"
Headers show

Commit Message

Konstantin Khorenko March 3, 2017, 9:54 a.m.
The commit is pushed to "branch-rh7-3.10.0-514.6.1.vz7.28.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.6.1.vz7.28.7
commit 345e18019fb48bfbf7681f2f8aff36eb8dd3e562
Author: Maxim Patlasov <mpatlasov@virtuozzo.com>
Date:   Fri Mar 3 13:54:48 2017 +0400

    mm: Revert accounting for WRITEBACK_TEMP in balance_dirty_pages
    We don't have to account WRITEBACK_TEMP in balance_dirty_pages anymore because
    of "strictlimit" feature: fuse marks its bdi with BDI_CAP_STRICTLIMIT, so
    balance_dirty_pages knows that for fuse it should always pay attention to
    per-bdi limits and counters.
    Kudos to Andrey Ryabinin for pointing out.
    Signed-off-by: Maxim Patlasov <mpatlasov@virtuozzo.com>
    Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
 mm/page-writeback.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index fd900c0..fcc0c1b 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -1534,8 +1534,7 @@  static void balance_dirty_pages(struct address_space *mapping,
 		nr_reclaimable = global_page_state(NR_FILE_DIRTY) +
-		nr_dirty = nr_reclaimable + global_page_state(NR_WRITEBACK) +
-			global_page_state(NR_WRITEBACK_TEMP);
+		nr_dirty = nr_reclaimable + global_page_state(NR_WRITEBACK);
 		global_dirty_limits(&background_thresh, &dirty_thresh);