Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2672309pxb; Tue, 12 Oct 2021 11:04:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKOiWj7SQFT+ArYsef6KvfUg1P3Bk4k20lAkraX0buv5eO1u9k7rwvK+ibOTgViPSOmz+z X-Received: by 2002:a65:5bcf:: with SMTP id o15mr23902947pgr.379.1634061854355; Tue, 12 Oct 2021 11:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634061854; cv=none; d=google.com; s=arc-20160816; b=iEm6KT99dvqucU8UUXGcCnTAI21bm6dGKtH0JtyHE3lpdHxXDsMXC0hJ66ysXxoszQ 9S723wFYlYbflZim+Gf2m8/Bp+PLFM0tbEq9u1SSL5vTG9JRmMiL5Xpeb68LzDn6odIY bsPXk999FXu5Dvl04XbaxHzFhnHrKc2wgoGxpNgqTEFD6OTCRRcTj/Nf6uDGi22UPXnM fxfBP3V/MAWQ6ZeqVabCkEOzUjjCDYhLxTgIKAcfqcnbu9DqrlBxxuxw+dcuPXfJX278 iAN56+pJHL2wY//gz3Fsczi/KwEJVIkprHTvtYg6BacKvq0yUMnjxZhaB1ABx/yibrBq fBKQ== 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=0e0rL00kLadi2lyvM6hOzWlirSZ5oBt2j8X8F7bJZSM=; b=Xo3R432/MQY+2CAtUE8lMuNFYC6evBgW+IzU+ITwwlJ/KSI4+UJekuo5XsXuqV2UHS G+VJQwMjKRqwg9sZ5NHmaQssrAcpr9po64kX6Unrn1tiPARGeMcmfM/dkj5BVUQJewU5 q655NX5t0Qoi48Tm/ryKmw5SzFoILaZChXRagQsRmyzplpObsr2gU47R88upeXpSBgvI khJNzF/ErzFWEBiMljDyQPkGAN9/H9tBeuwS4c2Udg/iLBLwBoM1lmq1zLsJpVYmlsPm Ff7D3bioxaPSsrP5YDUH0VpmpoZ0MLBEbc9zVIqhgjfsr/T/vTp9Hb7qlP2mpmmXrw9Z LelA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=chQcxN4b; 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 e10si4212097pjs.107.2021.10.12.11.03.54; Tue, 12 Oct 2021 11:04:14 -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=chQcxN4b; 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 S232936AbhJLSED (ORCPT + 99 others); Tue, 12 Oct 2021 14:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232404AbhJLSD5 (ORCPT ); Tue, 12 Oct 2021 14:03:57 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA20C061570 for ; Tue, 12 Oct 2021 11:01:55 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id q125so20166686qkd.12 for ; Tue, 12 Oct 2021 11:01:55 -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=0e0rL00kLadi2lyvM6hOzWlirSZ5oBt2j8X8F7bJZSM=; b=chQcxN4bRHoM7gj2TinQmcPE3Y4oJRxOkiEHEqowVxhCJo6D+Op8aYj8LkysJoHjDt Ayh2luHwOdYCu+ecHB4EonMFD7nG5YVFsuzIR1Non/doeQFyR3rwSnBvD2tgIX719L5D NtJIuo/6VjEkihK9V8OZrEvY7+8xrBHkeKCUeVFHJFwICJ0/U2v4UXYBhUBwo6I0W7t1 MrxJ0Bx8nlpqDdR6T2tOncI4YqW7cw53JU2/mObdD/bJBfEqeA6EihjNw5M/h991Zvgp r/mHE8Kxz8P9RbBBsKrnLUEyV6JbZInyDW84XQIr+1R9nW/jlR07K3uM55hJPtBeMTFB T0MA== 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=0e0rL00kLadi2lyvM6hOzWlirSZ5oBt2j8X8F7bJZSM=; b=LAueUD4grwbHnHmTKjqOWd+2CPYBGn8qwmH7qs9/F9xCkTGyECM5ixPgOzjzMdrJT/ 6Z+bcSQM99HK2FZmCoEa29TUC5FbkvjCgQ3eJamWV1a8/IAI5VzN05ftoHA72M+IkzvK DGaMiJqqU2l0T5poPpSR5IyPLEzHHDPfVe9vgQ8sPRGOuH1PMQUDbxPE3oaV888N7jSa jKwfLGXzjEUaxNrZnyApSFlv90K/3eMxcjALv6pCHLI/OngihDYmRm3qYSKVlqD7x2QR SkD2HreLbrVRhsUwKyLKw+Xm37WbaejuvwNtjXQgErjZbREpqZRsHCBC+AwPRDOkRwq/ 2rGg== X-Gm-Message-State: AOAM5310y9cf88CzTKsSYOPbuuLnbKS+GtJZHS9mhkIn4/5IG1nGk40D wdtRg4epPzhEQlh2OwZfO0+Plw== X-Received: by 2002:a37:a041:: with SMTP id j62mr21265322qke.423.1634061714932; Tue, 12 Oct 2021 11:01:54 -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 a16sm5992748qkn.16.2021.10.12.11.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 11:01:54 -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 03/11] PageSlab: eliminate unnecessary compound_head() calls in kernel/resource Date: Tue, 12 Oct 2021 14:01:40 -0400 Message-Id: <20211012180148.1669685-4-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 virt_to_head_page() implies it. Signed-off-by: Johannes Weiner --- kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/resource.c b/kernel/resource.c index a363211fda99..ca9f5198a01f 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -151,7 +151,7 @@ static void free_resource(struct resource *res) if (!res) return; - if (!PageSlab(compound_head(virt_to_head_page(res)))) { + if (!PageSlab(virt_to_head_page(res))) { spin_lock(&bootmem_resource_lock); res->sibling = bootmem_resource_free; bootmem_resource_free = res; -- 2.32.0