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

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Jun 4 12:37:52 MSK 2018


Remove some debugging printk that accidentally sneaked
in patch "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 1206a4627610..7905e7c510bf 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -6962,12 +6962,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);
-- 
2.16.4



More information about the Devel mailing list