[rh7] mm/memcg: Remove development debug printk

Submitted by Andrey Ryabinin on June 4, 2018, 9:37 a.m.

Details

Message ID 20180604093752.29644-1-aryabinin@virtuozzo.com
State New
Series "mm/memcg: Remove development debug printk"
Headers show

Commit Message

Andrey Ryabinin June 4, 2018, 9:37 a.m.
Remove some debugging printk that accidentally sneaked
in patch "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 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);