[Devel] [PATCH RHEL7 COMMIT] mm/memcg: Remove development debug printk

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jun 4 23:14:46 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.50.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.50.4
------>
commit dd4244fa9062d3475ce375997d89c542a8b5fb90
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Mon Jun 4 23:14:46 2018 +0300

    mm/memcg: Remove development debug printk
    
    Remove some debugging printk that accidentally sneaked
    in patch "mm/memcg: Don't charge anon pages as cache"
    
    Fixes: 3222682e7468 mm/memcg: ("Don't charge anon pages as cache")
    
    Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 mm/memcontrol.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 65c069a1eeae..ad05bf68e770 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -6988,12 +6988,8 @@ static int __mem_cgroup_try_charge(struct page *page, struct mm_struct *mm,
 			goto out;
 	}
 
-	if (PageTransHuge(page)) {
+	if (PageTransHuge(page))
 		nr_pages <<= compound_order(page);
-		if (!PageAnon(page)) {
-			pr_warn_once("page->flags %lx page %p head %p", page->flags, page, compound_head(page));
-		}
-	}
 
 	if (do_swap_account && PageSwapCache(page))
 		memcg = try_get_mem_cgroup_from_page(page);


More information about the Devel mailing list