Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2672116pxb; Tue, 12 Oct 2021 11:04:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAsIL9S3ubzaSJUgKXlopRmzuxAw9M8Ro7+e6lOYw3Zg2stGjEaCJZ2ZTM9uCoN75Az+GV X-Received: by 2002:a63:d250:: with SMTP id t16mr24047670pgi.95.1634061843561; Tue, 12 Oct 2021 11:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634061843; cv=none; d=google.com; s=arc-20160816; b=ab2sJWVjJCc9b3u6bv/YhOmF8hHQbrOgy7WC3zlLeZIvYkWxSxE3I/MmTer/1BG0Fc QuOkKoyt8CBiL9HNvGlhnn9brjf8R9uEhPOZc4VTamtc140eCTO1tZZpI73yX1QdL3rn X/aS2DBFNEoN+xypfyiyFnfolk8taQcRxJBowIe3XsUw7qZFgo3Sgncm5JfCG735Jkb/ JNg7G3QtQBqMCLK+yCZyE6EMqaemWlFCyi1er2nZKLa5q/o6j8mNBYAr8F2POIwGk4iJ SPOO7ANcN7Sp+jwA2uhT32db+lDz5Bm7k8q5plK+7EOkuuYoJcMpX4jenWtESOnjeU8j ByYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=003A3RpbxJpia6h8OJVwVmN8N2rifd/MJ8qrrv8J8WI=; b=w1OWjF0wrEPMIHehEJmy9BZcm4b6IPlo18oT8jYpgetcagRCsBbkD/pUwvOVgqyGnW N2sNi+lHJRbw5sFZyApPWmrynU0aIlSpM0UKIrahlZKCTDo+k74pt61VsQTbauFkMPI8 /9hY7n9sFVqk2RyYJPYOSvk9C8H7O5hGlHqnXoi7yVWxMC33XUgv6pSLxRynv3psU8nU cDw4h8Rx6XzX2uYBSMXsDai2jH67j/t46Xv7DywN6dBWHYMgvhJgVisqePv4L/Sc+/X7 QYdY12NPYzAIfKwLf2SkZBnOs6LoQIEVrmkeCMLAkMHOoTAtOdSEU7QPnTV4+E79LjUe dhfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=HNR7OnYK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si16713102pgp.53.2021.10.12.11.03.43; Tue, 12 Oct 2021 11:04:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=HNR7OnYK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232694AbhJLSEG (ORCPT + 99 others); Tue, 12 Oct 2021 14:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbhJLSD6 (ORCPT ); Tue, 12 Oct 2021 14:03:58 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851B3C061570 for ; Tue, 12 Oct 2021 11:01:56 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id y11so113089qtn.13 for ; Tue, 12 Oct 2021 11:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=003A3RpbxJpia6h8OJVwVmN8N2rifd/MJ8qrrv8J8WI=; b=HNR7OnYKCsaKVe/66ccJJ3qRoY0/5QYlZMwMRph64x/N/Q5ppPrii/KqTzqfJyKdku KkoTJCIgr+Mfe6kFyiWDVWYyx4iQco4EWDdAO7H7mrg4HmI8DIh/+JcuBPbcoVGuO4BI b+NZqM+Xax0KCiR4sp+coYDJHbAH31t+u2YL51HLfkVmFkZxxJsiOzDUSvAGX7pyQpaU SC/LjIPC8lu8gyhIbM0Cz0sOAYVrfjDPXwEiAiT7QaOzhMRz00gzW+iHfmP3801XAJb2 ojN8A3QDAt0roW9h05jyXE8hjKZXI6Jrw64Uz7Smw19dyyZAo6EPHDmAY53Vf0G9tkHz O/5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=003A3RpbxJpia6h8OJVwVmN8N2rifd/MJ8qrrv8J8WI=; b=HmsCEm/8SwRLxEvEHY24z6L2W9aUc2FefeXQOSx0jSX2ikj0ytXfHedyBWOGkgDvi5 MbEvetMASZ57OzL5GD5hUZA9wbKcPR6Ma4zBhRej97QREs0meuShGdKeKUiKaVOrO5WB hk1+Gl4ZeSm1+U1dH5ZD1yggYdoMq3QgRjmlMm+1bzpkdvZjs7r8ZWyJJN6JHWYiPoG6 qsIEC+LGFXBaycuoQPMCU04bdP2N8seVuIAguGjFkDbv1lEFGkvANgnRuns5yLLDvidj GozEjX7O5XDpiQbqeNyOEuAfSZ3nD3MbhWhsT4ZXMIILFF3gDTfpyEWH+dgo8zqPd1ZI tY/Q== X-Gm-Message-State: AOAM530zWWvYbnZ4iF6sVwpJAsR6KPvkugcmdbJ1SkCeciOWF4p5Gfck 2bzUH1koqeFflQbJufFTKPbkhg== X-Received: by 2002:a05:622a:1444:: with SMTP id v4mr24079249qtx.298.1634061715795; Tue, 12 Oct 2021 11:01:55 -0700 (PDT) Received: from localhost (cpe-98-15-154-102.hvc.res.rr.com. [98.15.154.102]) by smtp.gmail.com with ESMTPSA id t24sm6273030qkj.38.2021.10.12.11.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 11:01:55 -0700 (PDT) From: Johannes Weiner To: linux-mm@kvack.org Cc: Matthew Wilcox , Kent Overstreet , "Kirill A. Shutemov" , Vlastimil Babka , Michal Hocko , Roman Gushchin , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH 04/11] PageSlab: eliminate unnecessary compound_head() calls in mm/debug Date: Tue, 12 Oct 2021 14:01:41 -0400 Message-Id: <20211012180148.1669685-5-hannes@cmpxchg.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211012180148.1669685-1-hannes@cmpxchg.org> References: <20211012180148.1669685-1-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org head is resolved at the beginning of the function. Signed-off-by: Johannes Weiner --- mm/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/debug.c b/mm/debug.c index 500f5adce00e..fae0f81ad831 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -84,7 +84,7 @@ static void __dump_page(struct page *page) * page->_mapcount space in struct page is used by sl[aou]b pages to * encode own info. */ - mapcount = PageSlab(compound_head(head)) ? 0 : page_mapcount(page); + mapcount = PageSlab(head) ? 0 : page_mapcount(page); pr_warn("page:%p refcount:%d mapcount:%d mapping:%p index:%#lx pfn:%#lx\n", page, page_ref_count(head), mapcount, mapping, -- 2.32.0