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

Submitted by Konstantin Khorenko on June 4, 2018, 8:14 p.m.

Details

Message ID 201806042014.w54KEkGm005376@finist_ce7.work
State New
Series "mm/memcg: Remove development debug printk"
Headers show

Commit Message

Konstantin Khorenko June 4, 2018, 8:14 p.m.
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@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@virtuozzo.com>
---
 mm/memcontrol.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Patch hide | download patch | download mbox

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);