From patchwork Fri Nov 10 03:33:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 163766 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp864833vqs; Thu, 9 Nov 2023 19:34:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAQknh5tj+QPiKQYko28PEcTSGzE7euJXEsD3EsKpbp/Bk54mx/wrY24i06NF0Phx/58qA X-Received: by 2002:ac5:cb08:0:b0:4ab:f2e1:9e05 with SMTP id r8-20020ac5cb08000000b004abf2e19e05mr3280066vkl.9.1699587270542; Thu, 09 Nov 2023 19:34:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699587270; cv=none; d=google.com; s=arc-20160816; b=acndf4MSsEmREnEBJBiVy2SonQ1NzB8/bVPe3V2FWQxTw4xRl3jfUF3VycvdmlqYHo 6eclJLzbaFqt8nBYH+jHVFKf6fA/blcHmzTafxq4CgbDzjqLuyO56n9zmTlccNPKMud+ 8ocD0qi/MMOOMNz8J931xJ9HMimWy5sKxpA7a6//sRJYw9kSm+8HbpciuLU8+4Ps0Ttx 90a3/F0GPz6g98kgPsSM9QfPsm1Zk56oklu8Eai3PcPrWsUa9F7GF6ubrKPFFXNBQVNg kQvKso4qX+yDjIJgwgMxdVBsx9Runh6GGhA2lwEK40adUujxpOQ7ieuD6b/6MzTLYpjC nWDA== 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; bh=xOb+y0XMkGGquyk/OT8zd4iZd7TUkuv++N8cKE08zJY=; fh=Ig0AqGQMuH358nWWGrnHSF2kv4xbMV1Ws+OHgkmQS6g=; b=MFRQIWx7VyeHbPbG76HAQudZeKfaHJPiZZc+3tD5qa3DI0gYCaTo5sU/q4n/tK1JDI NSn45U8lUkzqI4Be+VL8ShlTUqI3yVUuV4U48E3rF6UkmFKBOre6iJjzDuTNnGYPngh1 6sqUbfYaB2RGEqFuyP6ruUECbbl05GPG4MhN4eTdk69uHBHNGUR2wV+ezpL0ZKukuwsY YbKT9KcsJTyZMfhD05mYyVYhFfV+XgwcJ1AppxbA2Oj7y9SLNnKHcsIe8ZEwIF9WqASp 14IpxPkxR6CFSl1htsP+EtYU0c5s5CqarVfiLd7h7BCkHLGJwYwneGDkuu31NxwkB8W+ c/Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w11-20020a056a0014cb00b006c3388579a6si17696253pfu.248.2023.11.09.19.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 19:34:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A13AD82B254F; Thu, 9 Nov 2023 19:34:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345815AbjKJDd7 (ORCPT + 30 others); Thu, 9 Nov 2023 22:33:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjKJDdx (ORCPT ); Thu, 9 Nov 2023 22:33:53 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A5864681 for ; Thu, 9 Nov 2023 19:33:50 -0800 (PST) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4SRPV373CDz1P8F1; Fri, 10 Nov 2023 11:30:35 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 10 Nov 2023 11:33:48 +0800 From: Kefeng Wang To: Andrew Morton CC: , , Matthew Wilcox , David Hildenbrand , Gregory Price , Kefeng Wang Subject: [PATCH v2 1/7] fs/proc/page: remove unneeded PageTail && PageSlab check Date: Fri, 10 Nov 2023 11:33:18 +0800 Message-ID: <20231110033324.2455523-2-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231110033324.2455523-1-wangkefeng.wang@huawei.com> References: <20231110033324.2455523-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 09 Nov 2023 19:34:17 -0800 (PST) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782146421398836798 X-GMAIL-MSGID: 1782146421398836798 After commit dcb351cd095a ("page-flags: define behavior SL*B-related flags on compound pages"), the slab could not be a tail, remove unneeded PageTail && PageSlab check. Signed-off-by: Kefeng Wang --- fs/proc/page.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/proc/page.c b/fs/proc/page.c index 195b077c0fac..466efb0dadf7 100644 --- a/fs/proc/page.c +++ b/fs/proc/page.c @@ -184,9 +184,6 @@ u64 stable_page_flags(struct page *page) u |= kpf_copy_bit(k, KPF_LOCKED, PG_locked); u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); - if (PageTail(page) && PageSlab(page)) - u |= 1 << KPF_SLAB; - u |= kpf_copy_bit(k, KPF_ERROR, PG_error); u |= kpf_copy_bit(k, KPF_DIRTY, PG_dirty); u |= kpf_copy_bit(k, KPF_UPTODATE, PG_uptodate);