Message ID | 20211012180148.1669685-5-hannes@cmpxchg.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=+gpB=PA=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D5C7C433FE for <linux-mm@archiver.kernel.org>; Tue, 12 Oct 2021 18:02:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B2BDE6109E for <linux-mm@archiver.kernel.org>; Tue, 12 Oct 2021 18:02:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B2BDE6109E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cmpxchg.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 45A6A94000A; Tue, 12 Oct 2021 14:01:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36D28940007; Tue, 12 Oct 2021 14:01:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1EAB094000A; Tue, 12 Oct 2021 14:01:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0108.hostedemail.com [216.40.44.108]) by kanga.kvack.org (Postfix) with ESMTP id 06C84940007 for <linux-mm@kvack.org>; Tue, 12 Oct 2021 14:01:57 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B9D6C82499A8 for <linux-mm@kvack.org>; Tue, 12 Oct 2021 18:01:56 +0000 (UTC) X-FDA: 78688553832.14.46AB2C3 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by imf16.hostedemail.com (Postfix) with ESMTP id 76DADF00009E for <linux-mm@kvack.org>; Tue, 12 Oct 2021 18:01:56 +0000 (UTC) Received: by mail-qt1-f176.google.com with SMTP id r1so120111qta.12 for <linux-mm@kvack.org>; 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=1fk3BLkN+otyW7yTI4MlnUqSB8Olu/xRil0bsfQQh7ovF8jTfbxD7ETmD9FEvHW2Z+ 1/4cr+wAsJEk1DTqT5AL+zrNw5dS62cQmJS1Ng1aw5flYVIXX+QUzhbDGk/9vX0dmyUY VJnkDv8Ygwx11dVnC/TNVWZSeCNAFcG0Qsu6yNDNnDtfSD2qypiogTVL9SOlYHOvCA0N A21uf9Ms9NzPijEsUVeZCtzsevxiZ1cajRGrj890eMSxBOf0lVOSdIOhyr5BlK4Zv2tn dwQAibIUW96Fbn4Y61kbbxXMvL3WykjQGP8ufOKMoGSZzyPA9Br/NDhgJmZifPpJ0F/g HShw== X-Gm-Message-State: AOAM530DWqHz348VIpvEQ343MD6ZymEeexsqozkhj/IrxytZAhIJ+0+Y qctHIZv1HMd6cUHXdWjgSBsfmS8bk5u7Ew== X-Google-Smtp-Source: ABdhPJyX5Fvu+U8cqav7fytlJ4DiQHHGf32yxspbjIFqLp/AdEMNeikDRJKkSjWl/VNUdIMXzGBEfg== 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 <hannes@cmpxchg.org> To: linux-mm@kvack.org Cc: Matthew Wilcox <willy@infradead.org>, Kent Overstreet <kent.overstreet@gmail.com>, "Kirill A. Shutemov" <kirill@shutemov.name>, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>, Roman Gushchin <guro@fb.com>, 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 X-Rspamd-Queue-Id: 76DADF00009E X-Stat-Signature: yban9o4ua3cjnt3dsdqse7z8gfiaiozd Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=HNR7OnYK; spf=pass (imf16.hostedemail.com: domain of hannes@cmpxchg.org designates 209.85.160.176 as permitted sender) smtp.mailfrom=hannes@cmpxchg.org; dmarc=pass (policy=none) header.from=cmpxchg.org X-Rspamd-Server: rspam06 X-HE-Tag: 1634061716-82665 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
PageSlab: eliminate unnecessary compound_head() calls
|
expand
|
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,
head is resolved at the beginning of the function. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> --- mm/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)