[Devel] [PATCH RHEL7 COMMIT] mm: Revert accounting for WRITEBACK_TEMP in balance_dirty_pages
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Mar 3 01:54:49 PST 2017
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 at 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.
https://jira.sw.ru/browse/PSBM-60701
Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>
Acked-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
mm/page-writeback.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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) +
global_page_state(NR_UNSTABLE_NFS);
- 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);
More information about the Devel
mailing list