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: 13452064 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DE4AC4332F for ; Fri, 10 Nov 2023 03:34:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 04F574401C4; Thu, 9 Nov 2023 22:34:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F41604401C0; Thu, 9 Nov 2023 22:34:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E305F4401C4; Thu, 9 Nov 2023 22:34:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id D4E9F4401C0 for ; Thu, 9 Nov 2023 22:34:26 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B99DE1A01FD for ; Fri, 10 Nov 2023 03:34:26 +0000 (UTC) X-FDA: 81440626932.01.26607FC Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf26.hostedemail.com (Postfix) with ESMTP id 802BF14000E for ; Fri, 10 Nov 2023 03:34:24 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699587265; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xOb+y0XMkGGquyk/OT8zd4iZd7TUkuv++N8cKE08zJY=; b=ebcC6IZUHbNe8XQ+QhP6ggiSc7cD6GEsBvCZRhZyFY1SBZPEYVeG1IHb0f8aPrO0EsHf0q Ket9zrjf2bZPGzpC8qDuIsgQ9sVt0lRnovjOAZuKyYVghlYnYC3pw1lEocX4QsN4Xrn+2W rbZBAoMLhtgHD0dluc4oh9nnomQh7SA= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699587265; a=rsa-sha256; cv=none; b=iuSEUW0lC83iXcik53uUvSDVzCTSqR5enUoU7e91Mrj9CofSpuvYdjLMIDOHYHKjtqYPDg jJqiMrRMQjLwYstUF/3Hy4cH4VroyfShY4YX4YRiM/O/Fk/80WjVJu4Xk66J90artLL1YE AP3BSVKUTiRIiJw496fhDyB6oLfEG/c= 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 X-Rspamd-Queue-Id: 802BF14000E X-Rspam-User: X-Stat-Signature: 71m9xiqn1jtnsisicmp6o6ntmssh7gim X-Rspamd-Server: rspam01 X-HE-Tag: 1699587264-166918 X-HE-Meta: U2FsdGVkX19Y0oflmGIfvbn7gVP1ieUEdIdPt6DYbbahIiN2jSZYG/w+MDdoFb3o/Lqk2tgng69ElghnA4KJAYOuji61cQ1zYIXud4ynHILQ7CxORtS93WdkGiK/e6IdtFpuIEVmUFawWFyuwPV8nCw/NdoOIUrCsCT3dFZyh/yI9l7sDzkxXaVf+Wqwk0aXN7fECDufRqHfzUO/NaHlUkJFK7z5St6c2HuDI1CHUHFI1NZtxcvadVyEFrFtlzBg2otDMEUe8WMySH+WxfzLWxrx2ORsAYJ3fDypgqUv7YtGI+aLNSpHGBVHLQ9G/MySXhgh3Sw6xLYrBWaj4CkLgZASXeV8TlkcP8Fy8dzeSOwRqNTUEzd2Uqsj3z4s8AgWI8rKqGNKnWw2s7hHQ8xUlgFex4d2gzzeW8IIxQMHojHi3ctsOrQIosfFtLG3UsbFy/pbE49nS7xPAzsDEfDfnD4ON9+eRMjnKwipLEUgXtxvPxeJwN+V6y/stkd/Mo0ioIAmMKUGJxcjst88xPrnDjGEoQGkrkNHXNnOwLYHycg+SDGX+5cj/NPk2stZbFgYlnqJFvNhOayfoPQV7MeK+KJhbh6XV6gKnNTdZ3M6hV3d0ODw2HxHFHXY2amD5pOpQMdU2kVumlmifm/0yOGrUUwaXwMxofytZ8/BnPK3sgANysbB2/IdsrMiR1xwxOtMpmiQkMPhJlwqN5DwLyBdFcPg8P3sOWuuE6nNCFKhUTr0XBWExgdYWjNMk+99GX8TN7EN4rbkAXulmG15eVR0kvk5BXq2ZFMDHKcC1muRy9MmaYMVvU/ay1w/hW+RBmOYVkp6TKsyQ0mWesZtSDUweBLCGlVmwvVmAikvIwScQubwl4XhJpppjnuUrRMaTyIa1FEdBPppjVBT3AX4sNdnW0p3H44ocYK/kHrcubmZz5jPEErR+2d9oe+E/eTelJujvLizKJNIFMQNFtcBEcD p6mCdg9j /1ykd6SYDIAkBaZeEme0MmJeX4Owc1ii6XiBOhvHPjv+FRqwrfvyjYbzGWiEM9nD4LNK1NLvS7OuGimsN30Hx8tHl1epR6wuFqVWKEGrQ3u6uNdJtSo11nHO6boKh3HA3uFqCXAvL1feZEvc= 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: List-Subscribe: List-Unsubscribe: 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);