From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D9F5C3A59F for ; Mon, 26 Aug 2019 16:01:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4582320828 for ; Mon, 26 Aug 2019 16:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566835268; bh=rI4xje9cYjishPyOoTB6+D7yUAV11eYCGtJUlXvw1ok=; h=Subject:To:Cc:From:Date:List-ID:From; b=HynzmYy6hlw9rj9C1KtZhLFi1xtJEV4l4gNEvossJ68AcPxFOIgAGK7RmQ6YstVag C9+u3Ko9ILZjaCyK5adaoNYeUCAlp1D/LFAwaGybafAwg5fyYnRwphlusc9wJB9ZGn Me1DlXJdvmi2NHZjHuJJuWQP4HEZnBQH+WymxvFg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730725AbfHZQBH (ORCPT ); Mon, 26 Aug 2019 12:01:07 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:60293 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729951AbfHZQBH (ORCPT ); Mon, 26 Aug 2019 12:01:07 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 68C885B9; Mon, 26 Aug 2019 12:01:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 26 Aug 2019 12:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=DQwxlU 9pAnEK1XTfm0kEbIefB9+IHsTYFtnzVIH/38c=; b=Af4YQFWFUCYeuAzOu1nLn+ qfOzJhjfYfTHGvOQpkVP6sYOB9sAlxKNoVabovitxsEA50+VcLqZ9+XTz5HQRDmx 5Vel/Cp+eqMPcbDYgHHF5W5/YQGFw4afwQLR9RC0wd/WFEyyX2cf2DYnlunnznrL iQ7BpBzA5LHpHLHfB1g+pHh/l2J7ROWpzr567wkYW8B476IWqFTQu3KOG8VJnGUQ GFxacq/pp0CQI5LcSgahr+6ia4QIdVPPPuNnrgGTcBbxfEY1viNDdS+wJuG9RExl jFx1WNfu82pIpIE3KYZtCBdBh9q6uRtkCSO+UHaBavZ4MVtIker399LxWlIxw7Yw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudehgedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepkeefrdekiedrkeelrd dutdejnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomhen ucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 6CC188006B; Mon, 26 Aug 2019 12:01:05 -0400 (EDT) Subject: FAILED: patch "[PATCH] mm, page_owner: handle THP splits correctly" failed to apply to 4.9-stable tree To: vbabka@suse.cz, akpm@linux-foundation.org, kirill@shutemov.name, mgorman@techsingularity.net, mhocko@kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org, willy@infradead.org Cc: From: Date: Mon, 26 Aug 2019 18:00:56 +0200 Message-ID: <156683525697160@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From f7da677bc6e72033f0981b9d58b5c5d409fa641e Mon Sep 17 00:00:00 2001 From: Vlastimil Babka Date: Sat, 24 Aug 2019 17:54:59 -0700 Subject: [PATCH] mm, page_owner: handle THP splits correctly THP splitting path is missing the split_page_owner() call that split_page() has. As a result, split THP pages are wrongly reported in the page_owner file as order-9 pages. Furthermore when the former head page is freed, the remaining former tail pages are not listed in the page_owner file at all. This patch fixes that by adding the split_page_owner() call into __split_huge_page(). Link: http://lkml.kernel.org/r/20190820131828.22684-2-vbabka@suse.cz Fixes: a9627bc5e34e ("mm/page_owner: introduce split_page_owner and replace manual handling") Reported-by: Kirill A. Shutemov Signed-off-by: Vlastimil Babka Cc: Michal Hocko Cc: Mel Gorman Cc: Matthew Wilcox Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 738065f765ab..de1f15969e27 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -2516,6 +2517,9 @@ static void __split_huge_page(struct page *page, struct list_head *list, } ClearPageCompound(head); + + split_page_owner(head, HPAGE_PMD_ORDER); + /* See comment in __split_huge_page_tail() */ if (PageAnon(head)) { /* Additional pin to swap cache */