Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2672515pxb; Tue, 12 Oct 2021 11:04:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdRIFXN2fkTA3qTUlMEUf4A1AJ0O97ZzeZBmYgEzhAC+GR7Zmra3fBQDFrwZ03enM33P7N X-Received: by 2002:a62:6206:0:b0:44c:bc1f:aa5a with SMTP id w6-20020a626206000000b0044cbc1faa5amr32653887pfb.5.1634061869170; Tue, 12 Oct 2021 11:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634061869; cv=none; d=google.com; s=arc-20160816; b=Po1cONF+rqutNqzxtorAKAKczm4Yesq/2KtCVjB9RZaLnDDO49TNDpr9IGCZxiu2BI j0CEjVvjvokCromOB+rmSD5/TjRfNvEkgLT9XUU2OMZyIqZCuam99DMLH7HWxvRE6m/V cDsCMsWD0QBG1uJKq8Vj4gpH5VBB6t1BixMaDVldGCDoC7if0VAWBRA7S8xdfQxxL3S6 lCf1e93n6jCW5U23kwZW4NMsVH5F+Co9YU/dWpZGMMnMcV9Wohggfxbmw04vtUyrYzp7 BNT0cW9MdO9ij8IicP2VWt3u5iZpMW+C3ajl5GvqsCRPBSeg22p3vnU9ySCXg24HYlRc 1vrQ== 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=J8ymrs8BqWOXJaCIl/vcEAutu2VS1jf5LIfnMpirIno=; b=HhhQEHFUaCIugZx8pMrT3MlDNoBpjlWrBuHX5Mzqj+yR0U0tlZQFBUraCVOHt7z/T5 gWxfNcle/H5cELtBCJJlERcj6isdaXGLOAQIGwodSXjk1GOsMvX8YtnM10mSaW5uTf45 AQ6cxKlVM9QTry6frUfsPnkr1Es7fSfoFMlomIwFDqz2/3uGwtLg1nC1v1iZhtzYdcyj 0w7vIV4MiCf4/uzPx/Pc7BVqMlnWh7gv5ZEAbsXL8St6S4DTz8W0Bhejbrj5jwuJez+p krM1k82/UWT0EwpKloqBgpAuhvsI+5ebX+a15oTVsvAjKRBVq1+AvrpHB7DpITeM8kCP jm5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=api8DVz7; 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 w16si15564774plk.198.2021.10.12.11.04.03; Tue, 12 Oct 2021 11:04:29 -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=api8DVz7; 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 S233324AbhJLSEV (ORCPT + 99 others); Tue, 12 Oct 2021 14:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232699AbhJLSEA (ORCPT ); Tue, 12 Oct 2021 14:04:00 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C7FC061570 for ; Tue, 12 Oct 2021 11:01:58 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id c28so124275qtv.11 for ; Tue, 12 Oct 2021 11:01:58 -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=J8ymrs8BqWOXJaCIl/vcEAutu2VS1jf5LIfnMpirIno=; b=api8DVz7bx2oVQ9f/ldYVg6zIqaVgDK7XC9AFr+oN86gJUIaU00fus2enBiUFdASXt 9z97UHOo927hwXvSGCqTP+3e5Iw95QOfW8fVJS/47yZSekiS0TdW1Pc8iMeEjE9Nuyi+ Pi7Cji+zNPmltNfU5w+6HHF8PdI6yIQH87MkiQcaOZGv0hjr7XPQJTkrU/cUMXhMKfef QEAQk/jeArS7E8NqSbtWRxnWH3BdQwv2AgQcrUsE4Tf1Yed9OouT6Kmah7HPNjLgsV3q vgMFftQyqsTPtygeQr5esj1j1xfCcPWCPKt1B4XgzkbuXHYcoYGGJN4TzKlfZ31yVoOd zTSw== 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=J8ymrs8BqWOXJaCIl/vcEAutu2VS1jf5LIfnMpirIno=; b=BCH88w73IUW561uIDQyh4d7FVe3th5UwQ+MpZq2ct88p1nITu9+9aQCY32x4uQRUqF Lf47sRQLCfoT1XKjaeGtae/aJq+rONM8bAGRgHS8ArsyZMnerDbHJk5zgmSoQ6OouXrp FB2BenrsXuNs26SqM5KsQI9QIKegKhH+n7BICOQyZM8t0INatWv8uu7G6mmn+uOvnn4c I96qEKKMsVM6dvSwGpLwXfyn0opb92Z8rTEtJhjw9vkFmiDLh8CAu0yC6PJfIOUKXQsn Out5yXG+Ka369FA5xoFtT/S+733SzUcPbTS65qjB2sJW++iEq8byMEBWeqjiiRW3YN3P RSsQ== X-Gm-Message-State: AOAM533dlDDM3fgFTcvtOxcROHUneBx026+cPeCR6wktSZLYhWkZY/KM J8oRew8jc9QPeB/OZuPWU3jI8g== X-Received: by 2002:ac8:1e10:: with SMTP id n16mr24325914qtl.86.1634061717671; Tue, 12 Oct 2021 11:01:57 -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 6sm3417977qko.88.2021.10.12.11.01.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 11:01:57 -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 06/11] PageSlab: eliminate unnecessary compound_head() call in mm/nommu Date: Tue, 12 Oct 2021 14:01:43 -0400 Message-Id: <20211012180148.1669685-7-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 The page comes from virt_to_head_page(). Signed-off-by: Johannes Weiner --- mm/nommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/nommu.c b/mm/nommu.c index c233126dd476..02d2427b8f9e 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -87,7 +87,7 @@ unsigned int kobjsize(const void *objp) * If the allocator sets PageSlab, we know the pointer came from * kmalloc(). */ - if (PageSlab(compound_head(page))) + if (PageSlab(page)) return ksize(objp); /* -- 2.32.0